Feedback Laraform is now in maintenance mode. Read more on our GitHub.

Checkbox Element

An element used to render checkbox input.

#Examples

#Options

Name Type Description
text string Text appears next to the checkbox.
trueValue str|num|bool Value of the element if checkbox is checked.
falseValue str|num|bool Value of the element if checkbox is unchecked.
default string Value of element when the form is initially loaded or reseted.
disabled boolean Whether the field is disabled.

#Properties

Name Type Default Description
disabled boolean false Whether the field is disabled.
text string null Text appears next to the checkbox.
trueValue str|num|bool true Value of the element if checkbox is checked.
falseValue str|num|bool false Value of the element if checkbox is unchecked.
defaultValue str|num|bool null Value of element when the form is initially loaded or reseted.

#Methods

# .disable()

Disabled the field.


# .enable()

Enables the field.


# .check()

Checks the checkbox.


# .uncheck()

Unhecks the checkbox.