adamwathan / bootforms

Rapid form generation with Bootstrap 3 and Laravel.
MIT License
417 stars 103 forks source link

Using data-* attributes #101

Closed grafikkaos closed 8 years ago

grafikkaos commented 8 years ago

Hi,

Is there a way I can set data-* attributes on a form element using BootForms?

Any ideas would be great..

Thanks

adamwathan commented 8 years ago

Yup!

BootForm::text('First Name', 'first_name')->data('foo', 'bar')

... should do it.

grafikkaos commented 8 years ago

Cheers :+1: