[英]is there any way to set char-counter maxlength dynamically for paper-input
我想为不同的数据设置不同的maxlength,我尝试通过在maxlength中编写一个方法来尝试,但是它没有用,所以还有其他可能性吗
<paper-input label="{{data.name}}" id="input" char-counter maxlength="getMaxLength()"></paper-input>
使用属性并将最大长度设置为属性:
<paper-input label="{{data.name}}" id="input" char-counter maxlength="[[maxValue]]"></paper-input>
使用方法并从方法返回值:
<paper-input label="{{data.name}}" id="input" char-counter maxlength="[[getMaxLength()]]"></paper-input>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.