The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

edit_field_checkbox

SYNOPSIS

  <& edit_field_checkbox, column => $column, row => $row &>

DESCRIPTION

Given a column and an optional row, this component produces a checkbox form element for that column. The value of this column when checked is 1.

If a row is given, then its value will determine whether or not the checkbox is checked. Otherwise the column's default value will be used.

PARAMETERS

  • column (required)

    An Alzabo::Column object.

  • row (optional)

    An Alzabo row object.

  • class (optional)

    This defaults to $m->base_comp->attr_if_exists('checkbox_class_default').