TYPO3 CMS  TYPO3_8-7
TYPO3\CMS\Backend\Form\Element\SelectSingleBoxElement Class Reference
Inheritance diagram for TYPO3\CMS\Backend\Form\Element\SelectSingleBoxElement:
TYPO3\CMS\Backend\Form\Element\AbstractFormElement TYPO3\CMS\Backend\Form\AbstractNode TYPO3\CMS\Backend\Form\NodeInterface

Public Member Functions

 render ()
 
- Public Member Functions inherited from TYPO3\CMS\Backend\Form\Element\AbstractFormElement
 __construct (NodeFactory $nodeFactory, array $data)
 
- Public Member Functions inherited from TYPO3\CMS\Backend\Form\AbstractNode
 __construct (NodeFactory $nodeFactory, array $data)
 
 render ()
 

Protected Member Functions

 renderSelectElement (array $optionElements, array $parameterArray, array $config)
 
 renderOptionElement ($value, $label, array $attributes=[])
 
- Protected Member Functions inherited from TYPO3\CMS\Backend\Form\Element\AbstractFormElement
 renderFieldInformation ()
 
 renderFieldControl ()
 
 renderFieldWizard ()
 
 hasNullCheckboxButNoPlaceholder ()
 
 hasNullCheckboxWithPlaceholder ()
 
 formatValue ($format, $itemValue, $formatOptions=[])
 
 formMaxWidth ($size=48)
 
 isWizardsDisabled ()
 
 renderWizards ( $itemKinds=null, $wizConf=null, $table=null, $row=null, $fieldName=null, $PA=null, $itemName=null, $specConf=null, $RTE=null)
 
 getLanguageService ()
 
- Protected Member Functions inherited from TYPO3\CMS\Backend\Form\AbstractNode
 initializeResultArray ()
 
 mergeChildReturnIntoExistingResult (array $existing, array $childReturn, bool $mergeHtml=true)
 
 getValidationDataAsDataAttribute (array $config)
 
 getValidationDataAsJsonString (array $config)
 

Protected Attributes

 $defaultFieldControl
 
 $defaultFieldWizard
 
- Protected Attributes inherited from TYPO3\CMS\Backend\Form\Element\AbstractFormElement
 $defaultInputWidth = 30
 
 $minimumInputWidth = 10
 
 $maxInputWidth = 50
 
 $iconFactory
 
- Protected Attributes inherited from TYPO3\CMS\Backend\Form\AbstractNode
 $nodeFactory
 
 $data = []
 
 $defaultFieldInformation = []
 
 $defaultFieldControl = []
 
 $defaultFieldWizard = []
 

Detailed Description

Create a widget with a select box where multiple items can be selected

This is rendered for config type=select, renderType=selectSingleBox

Definition at line 26 of file SelectSingleBoxElement.php.

Member Function Documentation

◆ render()

◆ renderOptionElement()

TYPO3\CMS\Backend\Form\Element\SelectSingleBoxElement::renderOptionElement (   $value,
  $label,
array  $attributes = [] 
)
protected

Renders a single <option> element

Parameters
string$valueThe option value
string$labelThe option label
array$attributesMap of attribute names and values
Returns
string

Definition at line 208 of file SelectSingleBoxElement.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\implodeAttributes().

Referenced by TYPO3\CMS\Backend\Form\Element\SelectSingleBoxElement\render().

◆ renderSelectElement()

TYPO3\CMS\Backend\Form\Element\SelectSingleBoxElement::renderSelectElement ( array  $optionElements,
array  $parameterArray,
array  $config 
)
protected

Member Data Documentation

◆ $defaultFieldControl

TYPO3\CMS\Backend\Form\Element\SelectSingleBoxElement::$defaultFieldControl
protected
Initial value:
= [
'resetSelection' => [
'renderType' => 'resetSelection'

Definition at line 33 of file SelectSingleBoxElement.php.

◆ $defaultFieldWizard

TYPO3\CMS\Backend\Form\Element\SelectSingleBoxElement::$defaultFieldWizard
protected
Initial value:
= [
'localizationStateSelector' => [
'renderType' => 'localizationStateSelector'

Definition at line 44 of file SelectSingleBoxElement.php.