How limit length of the String Attribute in pulggable widget?

0
How limit length of the String Attribute in pulggable widget? I see the widget  by dojo can limit length of the String Attribute, how to do this in pulggable widget? Is there any demo 
asked
1 answers
1

<input type="text" id="MyTextfieldId" name="MyTextfield" size="50">

offcourse the size can come from a parameter as long as it’s an integer

answered