Closed aenany-atmosphereiot closed 4 years ago
You could edit the select template used by alpaca and add the same code as existing for text field: {{#each options.data}}data-{{@key}}="{{this}}"{{/each}}
You can have a look in the Templates section of the Views page: http://alpacajs.org/docs/api/views.html
Dear Alpaca Team,
Thank you for developing this library, it has saved my team a ton of time building forms... I was wondering if you could include the option to insert data attributes for Select Fields, in a similar fashion to the TextFields, for example:
under alpaca.options.fields:
I would also like this to be possible:
Thank you so much.