Skip to content

Latest commit

 

History

History
18 lines (9 loc) · 368 Bytes

check.md

File metadata and controls

18 lines (9 loc) · 368 Bytes

Form field: Check

Designate a checkbox field.

Class: Code16\Sharp\Form\Fields\SharpFormCheckField

Configuration

setText(string $text)

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.