-
Notifications
You must be signed in to change notification settings - Fork 14
renderer options
Petr Cech edited this page Feb 12, 2018
·
1 revision
What is it?
$form->addText('text', 'text input')
->setAutocomplete(TRUE)
/*this*/->setOption(RendererOptions::feedbackValid, 'yup, this is valid');
Aim
The original Nette forms are great, but lack some pretty important documentation, usually along the lines: this parameter is $config. If can be an array or a string. The end, go f*ck yourself if you want to know what can actually be set...
So this library is taking a new approach: there are no wild strings, which you simply have to know. All recognized options are safe constants with PHPDoc and you can be sure the renderer supports them.
You can find all the options on Czubehead\BootstrapForms\Enums\RendererConfig
Mind that not all options are supported for everything, quite the opposite, actually.
There is no list here, I really don't want to maintain a formatted copy of the PHPDoc. Go see the source code.