some one give me examples, appreciate!
You can use the attr option of the text field type (and most others) to apply an attribute to a field.
attr
text
{ label: "My required input:", attr: { required: true } }
That can also be used to set the input type:
{ label: "My required input:", attr: { type: 'email', required: true } }
Allan
It looks like you're new here. If you want to get involved, click one of these buttons!
Answers
You can use the
attr
option of thetext
field type (and most others) to apply an attribute to a field.That can also be used to set the input type:
Allan