adamwathan / bootforms

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

Default Textarea value #28

Closed MarlBurroW closed 10 years ago

MarlBurroW commented 10 years ago

Hi,

Maybe it could be nice to add a default value for the textarea like that :

BootForm::textarea('Name' , 'name' , 'default value')

Good job

adamwathan commented 10 years ago

Hey thanks! This is actually already possible via chaining:

BootForm::textarea('Name', 'name')->defaultValue('default');

You can do the same thing with placeholders and other attributes too!

Adam

On Aug 30, 2014, at 10:04 PM, MarlBurroW notifications@github.com wrote:

Hi,

Maybe it's could be nice to add a default value for the textarea like that :

BootForm::textarea('Name' , 'name' , 'default value')

Good job

— Reply to this email directly or view it on GitHub https://github.com/adamwathan/bootforms/issues/28.

MarlBurroW commented 10 years ago

Cool thank you,

I knew for attributes, but as the value of a textarea is not an attribute I did not understand how to set the value.

thank you very much