Jet\Form_Renderer_Field_Input_Common

Renderer of a generic HTML tag input field that displays common input field types. The class inherits from Form_Renderer_Field_Input.

Renderer is common for multiple form field types.

Default view scripts

Field type Default view
Form_Field::TYPE_INPUT field/input/input
Form_Field::TYPE_HIDDEN field/input/hidden
Form_Field::TYPE_DATE field/input/date
Form_Field::TYPE_DATE_TIME field/input/date-time
Form_Field::TYPE_WEEK field/input/week
Form_Field::TYPE_TIME field/input/time
Form_Field::TYPE_MONTH field/input/month
Form_Field::TYPE_EMAIL field/input/email
Form_Field::TYPE_COLOR field/input/color
Form_Field::TYPE_PASSWORD field/input/password
Form_Field::TYPE_SEARCH field/input/search
Form_Field::TYPE_TEL field/input/tel
Form_Field::TYPE_URL field/input/url

K hodnotě v systémové konfiguraci lze přistupovat takto:

$view_script_start SysConf_Jet_Form_DefaultViews::get($field->getType(), 'input'); SysConf_Jet_Form_DefaultViews::set$field_type 'input''my-view-script');

Overview of methods

Method Meaning of
public setInputType(
string $input_type
) : void
View of a specific type of form element must set what input it is. That is practically the value of the type attribute.
protected generateTagAttributes_Standard(
) : void
This internal method generates standard HTML attributes for the input tag based on the form field settings.
Previous chapter
Jet\Form_Renderer_Field_Input
Next chapter
Jet\Form_Renderer_Field_Input_Number