SproutCMS

This is the code documentation for the SproutCMS project

function checkbox()

Returns the HTML for a single checkbox

Usage

unknown Fb::checkbox ( string $name , string $label , int|string $value , bool $selected , array $attrs );

Arguments

  1. string $name
    The name of the checkbox
  2. string $label
    The label for the checkbox; supports minimal HTML, Text::limitedSubsetHtml
  3. int|string $value
    The checkbox's value
  4. bool $selected
    Whether or not the checkbox is ticked
  5. array $attrs
    Extra attributes attached to the input tag

See also

  • @see Fb::checkboxSet