Class CheckboxGroup
- MvcCore\Ext\Form\Core\Field
-
MvcCore\Ext\Form\Core\FieldGroup
-
MvcCore\Ext\Form\CheckboxGroup
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
#
OnAdded(
This method is called internaly from \MvcCore\Ext\Form after field is added into form by $form->AddField(); method. Do not use it if you are only user of this library. - check if there are any options for current controls group Parent method: - check if field has any name, which is required - set up form and field id attribute by form id and field name - set up required |
protected
array
|
#
renderControlItemCompleteAttrsClassesAndText( string $key, string|array $option )
Complete by $field->Options key and option value: - label text - label attributes string - control attributes string |
public
|
public
string
|
$Type
Form group pseudo control type, unique type accross all form field types. |
#
'checkbox'
|
public
integer
|
$MinSelectedOptionsCount
|
#
0
|
public
string
|
$MinSelectedOptionsMessage
|
#
''
|
public
string
|
$MinSelectedOptionsBubbleMessage
|
#
''
|
public
integer
|
$MaxSelectedOptionsCount
|
#
0
|
public
string
|
$MaxSelectedOptionsMessage
|
#
''
|
public
string
|
$MaxSelectedOptionsBubbleMessage
|
#
''
|
public
string
|
$MaxSelectedOptionsClassName
|
#
'max-selected-options'
|
public
string[]|Closure[]
|
$Validators
List of validator classes end-names or list of closure functions accepting arguments: $submitValue, $fieldName, \MvcCore\Ext\Form\Core\Field & $field and returning safe value as result. Closure function should call $field->Form->AddError() internaly if necessary and submitted value is not correct. All validator classes are located in directory: /Form/Validators/... For validator class \MvcCore\Ext\Form\Validators\Numeric is necessary only tu set 'Numeric'. |
#
array("ValueInOptions")
|
public
string
|
$JsClass
Supporting javascript full class name. |
#
'MvcCoreForm.CheckboxGroup'
|
public
string
|
$Js
Supporting javascript file relative path. Replacement 'MVCCORE_FORM_DIR' is in rendering process replaced by \MvcCore\Ext\Form library root dir or by any other reconfigured value from $this->Form->jsAssetsRootDir; |
#
'__MVCCORE_FORM_DIR__/fields/checkbox-group.js'
|
public static
array|stdClass
|
$Templates
Internal common templates how to render field group elements naturaly. |
#
array(
'control' => '<input id="{id}" name="{name}[]" type="{type}" value="{value}"{checked}{attrs} />',
)
|
$GroupCssClasses,
$GroupLabelAttrs,
$Options,
$Value
|
$ControlAttrs,
$Css,
$CssClasses,
$Disabled,
$Errors,
$Form,
$Id,
$Label,
$LabelAttrs,
$LabelSide,
$Name,
$Readonly,
$RenderMode,
$Required,
$TemplatePath,
$Translate,
$View,
$declaredProtectedProperties
|