![]() |
Framework
3.9
|
Displays a control that provides a highly styleable set of options from which the user can select a number of items. More...
Public Member Functions | |
OptionCheckListFieldRenderer (&$form, $field, $label, $options) | |
renderScript ($field) | |
FieldRenderers can override this method to provide any Javascript that their control requires for an edit form. More... | |
renderField ($field) | |
FieldRenderers must override this method to provide the HTML implementation of the control used to edit the field. More... | |
renderReadOnly ($field) | |
![]() | |
FieldRenderer ($parent) | |
Constructor. More... | |
_printLabel ($field, $colspan=1, $styles="", $annotation="") | |
Internal method to generate the HTML for the field label. More... | |
_getLabel ($field, $addSuffix=true) | |
_startField ($field, $styles="") | |
Internal method to generate the starting HTML for the field (including the label) More... | |
_endField ($field) | |
Internal method to generate the closing HTML for the field. More... | |
addValidatorsToForm ($field, $required=false) | |
This method is called by the AutoForm to add any default input validators that are required by the FieldRenderer. More... | |
addSearchValidatorsToForm ($field, $mode, $required=false) | |
For SearchForm, the validator field needs to match the name tag in the form which is in the format field:mode. More... | |
formatName ($item, $name) | |
Formats the given DataItem based on the supplied format string. More... | |
renderSearchScript ($field, $mode) | |
FieldRenderers can override this method to provide any Javascript that the control requires when being used in a search form. More... | |
renderSearchField ($field, $mode) | |
FieldRenderers must override this method to provide the HTML implementation of the control displayed for the field in a search form. More... | |
renderOnSubmitHandler ($field) | |
FieldRenderers can override this method to provide any Javascript that must be executed when the form is submitted on the client. More... | |
preProcess ($field="") | |
FieldRenderers can override this method to provide behavior that occurs prior to the saving of the parent form's target object to the database. More... | |
postProcess ($field="") | |
FieldRenderers can override this method to provide behavior that occurs after the parent form's target object has been saved to the database. More... | |
Public Attributes | |
$options = array() | |
$cssClass = "options_list" | |
$separator = ", " | |
![]() | |
$parent = null | |
$labelSuffix = "" | |
$colspan = 1 | |
$annotateBefore = false | |
$annotateNextLine = true | |
$hideLabel = false | |
$onPreProcess = null | |
callback hook for processing prior to saving the form's data object - individual renderers may override with custom processing More... | |
$onPostProcess = null | |
callback hook for processing after saving the form's data object - individual renderers may override with custom processing More... | |
Displays a control that provides a highly styleable set of options from which the user can select a number of items.
The optons are provided as an array of value-description pairs, and are rendered as an unordered list in HTML, with javascript to provide the selection interaction. Clicking on one of the items will select the associated value. The currently selected list item is given the "selected" CSS class.
Definition at line 48 of file option_checklist_field_renderer.inc.
OptionCheckListFieldRenderer::OptionCheckListFieldRenderer | ( | & | $form, |
$field, | |||
$label, | |||
$options | |||
) |
Definition at line 54 of file option_checklist_field_renderer.inc.
OptionCheckListFieldRenderer::renderField | ( | $field | ) |
FieldRenderers must override this method to provide the HTML implementation of the control used to edit the field.
string | $field | the field name |
Reimplemented from FieldRenderer.
Definition at line 111 of file option_checklist_field_renderer.inc.
OptionCheckListFieldRenderer::renderReadOnly | ( | $field | ) |
Definition at line 133 of file option_checklist_field_renderer.inc.
OptionCheckListFieldRenderer::renderScript | ( | $field | ) |
FieldRenderers can override this method to provide any Javascript that their control requires for an edit form.
string | $field | the field name |
Reimplemented from FieldRenderer.
Definition at line 70 of file option_checklist_field_renderer.inc.
OptionCheckListFieldRenderer::$cssClass = "options_list" |
Definition at line 51 of file option_checklist_field_renderer.inc.
OptionCheckListFieldRenderer::$options = array() |
Definition at line 50 of file option_checklist_field_renderer.inc.
OptionCheckListFieldRenderer::$separator = ", " |
Definition at line 52 of file option_checklist_field_renderer.inc.