Trait TabIndex
Trait for classes:
- \MvcCore\Ext\Forms\Fields\Button
- \MvcCore\Ext\Forms\Fields\SubmitButton
- \MvcCore\Ext\Forms\Fields\ResetButton
- \MvcCore\Ext\Forms\Fields\Color
- \MvcCore\Ext\Forms\Fields\Date
- \MvcCore\Ext\Forms\Fields\DateTime
- \MvcCore\Ext\Forms\Fields\Month
- \MvcCore\Ext\Forms\Fields\Time
- \MvcCore\Ext\Forms\Fields\Week
- \MvcCore\Ext\Forms\Fields\File
- \MvcCore\Ext\Forms\Fields\Checkbox
- \MvcCore\Ext\Forms\Fields\Image
- \MvcCore\Ext\Forms\Fields\Number
- \MvcCore\Ext\Forms\Fields\Range
- \MvcCore\Ext\Forms\Fields\ResetInput
- \MvcCore\Ext\Forms\Fields\Select
- \MvcCore\Ext\Forms\Fields\CountrySelect
- \MvcCore\Ext\Forms\Fields\SubmitInput
- \MvcCore\Ext\Forms\Fields\Text
- \MvcCore\Ext\Forms\Fields\Email
- \MvcCore\Ext\Forms\Fields\Password
- \MvcCore\Ext\Forms\Fields\Search
- \MvcCore\Ext\Forms\Fields\Tel
- \MvcCore\Ext\Forms\Fields\Url
- \MvcCore\Ext\Forms\Fields\Textarea
- \MvcCore\Ext\Forms\FieldsGroup
- \MvcCore\Ext\Forms\CheckboxGroup
- \MvcCore\Ext\Forms\RadioGroup
Methods summary
public
integer|string|null
|
#
GetTabIndex( )
Get an integer attribute indicating if the element can take input focus (is focusable),
if it should participate to sequential keyboard navigation, and if so, at what
position. You can set auto string value to get next form tab-index value automatically.
Tab-index for every field in form is better to index from value 1 or automatically and
moved to specific higher value by place, where is form currently rendered by form
instance method $form->SetBaseTabIndex() to move tab-index for each field into
final values. Tab-index can takes several values:
- a negative value means that the element should be focusable, but should not be
reachable via sequential keyboard navigation;
- 0 means that the element should be focusable and reachable via sequential
keyboard navigation, but its relative order is defined by the platform convention;
- a positive value means that the element should be focusable and reachable via
sequential keyboard navigation; the order in which the elements are focused is
the increasing value of the tab-index. If several elements share the same tab-index,
their relative order follows their relative positions in the document.
Get an integer attribute indicating if the element can take input focus (is focusable),
if it should participate to sequential keyboard navigation, and if so, at what
position. You can set auto string value to get next form tab-index value automatically.
Tab-index for every field in form is better to index from value 1 or automatically and
moved to specific higher value by place, where is form currently rendered by form
instance method $form->SetBaseTabIndex() to move tab-index for each field into
final values. Tab-index can takes several values:
- a negative value means that the element should be focusable, but should not be reachable via sequential keyboard navigation;
- 0 means that the element should be focusable and reachable via sequential keyboard navigation, but its relative order is defined by the platform convention;
- a positive value means that the element should be focusable and reachable via sequential keyboard navigation; the order in which the elements are focused is the increasing value of the tab-index. If several elements share the same tab-index, their relative order follows their relative positions in the document.
Returns
integer|string|null
See
https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes#attr-tab-index
|
public
MvcCore\Ext\Forms\Field
|
#
SetTabIndex( integer|string $tabIndex = 'auto' )
Set an integer attribute indicating if the element can take input focus (is focusable),
if it should participate to sequential keyboard navigation, and if so, at what
position. You can set auto string value to get next form tab-index value automatically.
Tab-index for every field in form is better to index from value 1 or automatically and
moved to specific higher value by place, where is form currently rendered by form
instance method $form->SetBaseTabIndex() to move tab-index for each field into
final values. Tab-index can takes several values:
- a negative value means that the element should be focusable, but should not be
reachable via sequential keyboard navigation;
- 0 means that the element should be focusable and reachable via sequential
keyboard navigation, but its relative order is defined by the platform convention;
- a positive value means that the element should be focusable and reachable via
sequential keyboard navigation; the order in which the elements are focused is
the increasing value of the tab-index. If several elements share the same tab-index,
their relative order follows their relative positions in the document.
Set an integer attribute indicating if the element can take input focus (is focusable),
if it should participate to sequential keyboard navigation, and if so, at what
position. You can set auto string value to get next form tab-index value automatically.
Tab-index for every field in form is better to index from value 1 or automatically and
moved to specific higher value by place, where is form currently rendered by form
instance method $form->SetBaseTabIndex() to move tab-index for each field into
final values. Tab-index can takes several values:
- a negative value means that the element should be focusable, but should not be reachable via sequential keyboard navigation;
- 0 means that the element should be focusable and reachable via sequential keyboard navigation, but its relative order is defined by the platform convention;
- a positive value means that the element should be focusable and reachable via sequential keyboard navigation; the order in which the elements are focused is the increasing value of the tab-index. If several elements share the same tab-index, their relative order follows their relative positions in the document.
Parameters
Returns
See
https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes#attr-tab-index
|
protected
|
#
preDispatchTabIndex( )
Check after field is added into form, if field
has defined any value for pattern property and if it does,
add automatically build in pattern validator.
Check after field is added into form, if field
has defined any value for pattern property and if it does,
add automatically build in pattern validator.
|
Properties summary
protected
integer|string|null
|
$tabIndex
An integer attribute indicating if the element can take input focus (is focusable),
if it should participate to sequential keyboard navigation, and if so, at what
position. You can set auto string value to get next form tab-index value automatically.
Tab-index for every field in form is better to index from value 1 or automatically and
moved to specific higher value by place, where is form currently rendered by form
instance method $form->SetBaseTabIndex() to move tab-index for each field into
final values. Tab-index can takes several values:
- a negative value means that the element should be focusable, but should not be
reachable via sequential keyboard navigation;
- 0 means that the element should be focusable and reachable via sequential
keyboard navigation, but its relative order is defined by the platform convention;
- a positive value means that the element should be focusable and reachable via
sequential keyboard navigation; the order in which the elements are focused is
the increasing value of the tab-index. If several elements share the same tab-index,
their relative order follows their relative positions in the document.
An integer attribute indicating if the element can take input focus (is focusable),
if it should participate to sequential keyboard navigation, and if so, at what
position. You can set auto string value to get next form tab-index value automatically.
Tab-index for every field in form is better to index from value 1 or automatically and
moved to specific higher value by place, where is form currently rendered by form
instance method $form->SetBaseTabIndex() to move tab-index for each field into
final values. Tab-index can takes several values:
- a negative value means that the element should be focusable, but should not be reachable via sequential keyboard navigation;
- 0 means that the element should be focusable and reachable via sequential keyboard navigation, but its relative order is defined by the platform convention;
- a positive value means that the element should be focusable and reachable via sequential keyboard navigation; the order in which the elements are focused is the increasing value of the tab-index. If several elements share the same tab-index, their relative order follows their relative positions in the document.
See
https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes#attr-tab-index
|
|