Class Button
- MvcCore\Ext\Form\Core\Field
-
MvcCore\Ext\Form\Button
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
|
|
public
string
|
public
string
|
$Type
Form control type, usually used in attr value, but unique type accross all form field types. |
#
'button'
|
public
string
|
$Value
Form control value. |
#
'OK'
|
public
string
|
$RenderMode
Control/label rendering mode, defined in form by defaut as: 'normal'. Normal means label will be rendered before control, only for checkbox and radio buttons labels will be rendered after controls. Another possible values are 'no-label' and 'label-around'. Use \MvcCore\Ext\Form::FIELD_RENDER_MODE_NORMAL, \MvcCore\Ext\Form::FIELD_RENDER_MODE_NO_LABEL and \MvcCore\Ext\Form::FIELD_RENDER_MODE_LABEL_AROUND. |
#
\MvcCore\Ext\Form::FIELD_RENDER_MODE_NO_LABEL
|
public
|
$Accesskey
|
#
null
|
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' => '<button id="{id}" name="{name}" type="{type}"{attrs}>{value}</button>',
)
|
$ControlAttrs,
$Css,
$CssClasses,
$Disabled,
$Errors,
$Form,
$Id,
$Js,
$JsClass,
$Label,
$LabelAttrs,
$LabelSide,
$Name,
$Readonly,
$Required,
$TemplatePath,
$Translate,
$Validators,
$View,
$declaredProtectedProperties
|