adamwathan / bootforms

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

Allow specifying checked state of inline checkboxes #32

Closed manavo closed 10 years ago

manavo commented 10 years ago

At the moment, because the label is returned, we have no way of chaining the check() or uncheck() calls. Passing in a param to check or uncheck solves this. Defaults to false, so it doesn't break any existing calls, and since that's the default behaviour anyway at the moment.

adamwathan commented 10 years ago

Ah good catch. I was looking into seeing if it would be simple to support chaining but it's probably not worth it just for checkboxes so this implementation looks good :+1: Thanks!