TYPO3
7.6
|
Public Member Functions | |
render () | |
Public Member Functions inherited from AbstractFormElement | |
__construct (NodeFactory $nodeFactory, array $data) | |
Public Member Functions inherited from AbstractNode | |
__construct (NodeFactory $nodeFactory, array $data) | |
render () | |
Protected Member Functions | |
renderSelectElement (array $optionElements, array $parameterArray, array $config) | |
renderOptionElement ($value, $label, array $attributes=[]) | |
renderResetButtonElement ($formElementName, array $initiallySelectedIndices) | |
implodeAttributes (array $attributes=[]) | |
Protected Member Functions inherited from AbstractFormElement | |
isWizardsDisabled () | |
formMaxWidth ($size=48) | |
getClipboardElements ($allowed, $mode) | |
getLanguageService () | |
Protected Member Functions inherited from AbstractNode | |
initializeResultArray () | |
mergeChildReturnIntoExistingResult (array $existing, array $childReturn) | |
getValidationDataAsDataAttribute (array $config) | |
getValidationDataAsJsonString (array $config) | |
Additional Inherited Members | |
Protected Attributes inherited from AbstractFormElement | |
$defaultInputWidth = 30 | |
$minimumInputWidth = 10 | |
$maxInputWidth = 50 | |
$clipboard = null | |
$iconFactory | |
Create a widget with a select box where multiple items can be selected
This is rendered for config type=select, maxitems > 1, renderType=selectSingleBox
Definition at line 28 of file SelectSingleBoxElement.php.
|
protected |
Build an HTML attributes string from a map of attributes
All attribute values are passed through htmlspecialchars()
array | $attributes | Map of attribute names and values |
Definition at line 229 of file SelectSingleBoxElement.php.
Referenced by SelectSingleBoxElement\renderOptionElement(), SelectSingleBoxElement\renderResetButtonElement(), and SelectSingleBoxElement\renderSelectElement().
render | ( | ) |
This will render a selector box element, or possibly a special construction with two selector boxes.
Implements NodeInterface.
Definition at line 35 of file SelectSingleBoxElement.php.
References AbstractFormElement\formMaxWidth(), AbstractFormElement\getLanguageService(), BackendUtility\getSpecConfParts(), AbstractNode\initializeResultArray(), SelectSingleBoxElement\renderOptionElement(), SelectSingleBoxElement\renderResetButtonElement(), and SelectSingleBoxElement\renderSelectElement().
|
protected |
Renders a single <option> element
string | $value | The option value |
string | $label | The option label |
array | $attributes | Map of attribute names and values |
Definition at line 174 of file SelectSingleBoxElement.php.
References SelectSingleBoxElement\implodeAttributes().
Referenced by SelectSingleBoxElement\render().
|
protected |
Renders a button for resetting to the selection on initial load
string | $formElementName | Form element name |
array | $initiallySelectedIndices | List of initially selected option indices |
Definition at line 193 of file SelectSingleBoxElement.php.
References AbstractFormElement\getLanguageService(), SelectSingleBoxElement\implodeAttributes(), GeneralUtility\quoteJSvalue(), and Icon\SIZE_SMALL.
Referenced by SelectSingleBoxElement\render().
|
protected |
Renders a <select> element
array | $optionElements | List of rendered <option> elements |
array | $parameterArray | |
array | $config | Field configuration |
Definition at line 123 of file SelectSingleBoxElement.php.
References MathUtility\forceIntegerInRange(), StringUtility\getUniqueId(), AbstractNode\getValidationDataAsDataAttribute(), and SelectSingleBoxElement\implodeAttributes().
Referenced by SelectSingleBoxElement\render().