Class Select
- MvcCore\Ext\Form\Core\Field
-
MvcCore\Ext\Form\Select
Direct known subclasses
MvcCore\Ext\Form\CountrySelect
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 field has any name, which is required - set up form and field id attribute by form id and field name - set up required |
public
|
|
protected
|
|
protected
|
|
public
string
|
|
public
|
|
protected
|
|
protected
|
|
protected
|
public
string
|
$Type
Form control type, usually used in attr value, but unique type accross all form field types. |
#
'select'
|
public
string|array
|
$Value
|
#
''
|
public
boolean
|
$Multiple
|
#
FALSE
|
public
integer
|
$Size
|
#
3
|
public
string
|
$FirstOptionText
|
#
''
|
public
array
|
$Options
|
#
array()
|
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 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' => '<select id="{id}" name="{name}"{multiple}{size}{attrs}>{options}</select>',
'option' => '<option value="{value}"{selected}{class}{attrs}>{text}</option>',
'optgroup' => '<optgroup{label}>{options}</optgroup>',
)
|
$ControlAttrs,
$Css,
$CssClasses,
$Disabled,
$Errors,
$Form,
$Id,
$Js,
$JsClass,
$Label,
$LabelAttrs,
$LabelSide,
$Name,
$Readonly,
$RenderMode,
$Required,
$TemplatePath,
$Translate,
$View,
$declaredProtectedProperties
|