marvinlabs / laravel-html-bootstrap-4

Bootstrap 4 fluent HTML builder
MIT License
42 stars 15 forks source link

Can't set disabled() on radioGroup #33

Closed axyr closed 6 years ago

axyr commented 6 years ago

Thanks for adding the radio and radioGroup elements!

In the RadioGroup __call method are some methods that will be forwarded to the Radio elements, butdisabled is not one of them:

['radio' => '', 'forgetRadio' => 'forget', 'addRadio' => 'add']

There is some magic in the __call method I did not understand, but it not seems a matter of adding disabled (and 'readonly') to the array.

vpratfr commented 6 years ago

Hi

Magic allows to call methods on the radios in the group.

Try group->radioDisabled()

axyr commented 6 years ago

Ah thanks!