Class Checkbox
- MvcCore\Ext\Form\Core\Field
-
MvcCore\Ext\Form\Checkbox
public
|
|
public
string
|
public
string
|
$Type
Form control type, usually used in attr value, but unique type accross all form field types. |
#
'checkbox'
|
public
string
|
$LabelSide
Location where to render |
#
'right'
|
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('SafeString')
|
public static
array
|
$Templates
Core rendering templates storrage. Those templates are used in form natural rendering process, form custom template rendering process, natural field rendering process but not by custom field rendering process. |
#
array(
'control' => '<input id="{id}" name="{name}" type="checkbox" value="true"{value}{attrs} />',
'togetherLabelLeft' => '<label for="{id}"{attrs}><span>{label}</span>{control}</label>',
'togetherLabelRight'=> '<label for="{id}"{attrs}>{control}<span>{label}</span></label>',
)
|
$ControlAttrs,
$Css,
$CssClasses,
$Disabled,
$Errors,
$Form,
$Id,
$Js,
$JsClass,
$Label,
$LabelAttrs,
$Name,
$Readonly,
$RenderMode,
$Required,
$TemplatePath,
$Translate,
$Value,
$View,
$declaredProtectedProperties
|