Closed MarlBurroW closed 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.
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
Hi,
Maybe it could be nice to add a default value for the textarea like that :
BootForm::textarea('Name' , 'name' , 'default value')
Good job