Skip to content

Check

Designate a checkbox field.

Class: Code16\Sharp\Form\Fields\SharpFormCheckField

Configuration

setText

Set the text of the checkbox (its label). Note that the SharpFormCheckField constructor requires this attribute.

Formatter

  • toFront: casts whatever is provided as boolean.
  • fromFront: return a boolean.

Released under the MIT License.