Can we set the span attribute for each variable in the form itself?

i want to set diiferent icons for each varible like calender for date,message for email etc.....how i can do it the form itself....like using setAttribute ??

<span class ="input-group-addon"> <i class ="fa fa-group"></i> </span>



67.7k

the only way is to extend a component and make render functionality to do what you desire.

Me personally i write those creeky things with simple volt/html and use only form.render("field") to render the input , rest i do it myself.