‪TYPO3CMS  10.4
TYPO3\CMS\Backend\Form\Element\SelectTreeElement Class Reference
Inheritance diagram for TYPO3\CMS\Backend\Form\Element\SelectTreeElement:
TYPO3\CMS\Backend\Form\Element\AbstractFormElement TYPO3\CMS\Backend\Form\AbstractNode TYPO3\CMS\Backend\Form\NodeInterface

Public Member Functions

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

Protected Member Functions

string getTreeOnChangeJs ()
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Backend\Form\Element\AbstractFormElement
array renderFieldInformation ()
 
array renderFieldControl ()
 
array renderFieldWizard ()
 
bool hasNullCheckboxButNoPlaceholder ()
 
bool hasNullCheckboxWithPlaceholder ()
 
string formatValue ($format, $itemValue, $formatOptions=[])
 
int formMaxWidth ($size=48)
 
string checkBoxParams ($itemName, $formElementValue, $checkbox, $checkboxesCount, $additionalJavaScript='')
 
array calculateColumnMarkup (int $cols)
 
string appendValueToLabelInDebugMode ($label, $value)
 
LanguageService getLanguageService ()
 
BackendUserAuthentication getBackendUser ()
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Backend\Form\AbstractNode
array initializeResultArray ()
 
array mergeChildReturnIntoExistingResult (array $existing, array $childReturn, bool $mergeHtml=true)
 
string getValidationDataAsJsonString (array $config)
 

Protected Attributes

array $defaultFieldInformation
 
array $defaultFieldWizard
 
int $itemsToShow = 15
 
int $minItemsToShow = 5
 
int $itemHeight = 20
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Backend\Form\Element\AbstractFormElement
int $defaultInputWidth = 30
 
int $minimumInputWidth = 10
 
int $maxInputWidth = 50
 
IconFactory $iconFactory
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Backend\Form\AbstractNode
NodeFactory $nodeFactory
 
array $data = array( )
 
array $defaultFieldInformation = array( )
 
array $defaultFieldControl = array( )
 
array $defaultFieldWizard = array( )
 

Detailed Description

Render data as a tree.

Typically rendered for config type=select, renderType=selectTree

Definition at line 25 of file SelectTreeElement.php.

Member Function Documentation

◆ getTreeOnChangeJs()

string TYPO3\CMS\Backend\Form\Element\SelectTreeElement::getTreeOnChangeJs ( )
protected

Generates JS code triggered on change of the tree

Returns
‪string

Definition at line 201 of file SelectTreeElement.php.

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

◆ render()

Member Data Documentation

◆ $defaultFieldInformation

array TYPO3\CMS\Backend\Form\Element\SelectTreeElement::$defaultFieldInformation
protected
Initial value:
= array(
'tcaDescription' => [
'renderType' => 'tcaDescription',
],
)

Default field information enabled for this element.

Definition at line 31 of file SelectTreeElement.php.

◆ $defaultFieldWizard

array TYPO3\CMS\Backend\Form\Element\SelectTreeElement::$defaultFieldWizard
protected
Initial value:
= array(
'localizationStateSelector' => [
'renderType' => 'localizationStateSelector',
],
)

Default wizards

Definition at line 39 of file SelectTreeElement.php.

◆ $itemHeight

int TYPO3\CMS\Backend\Form\Element\SelectTreeElement::$itemHeight = 20
protected

Pixel height of a single tree node

Definition at line 63 of file SelectTreeElement.php.

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

◆ $itemsToShow

int TYPO3\CMS\Backend\Form\Element\SelectTreeElement::$itemsToShow = 15
protected

Default number of tree nodes to show (determines tree height) when no ['config']['size'] is set

Definition at line 50 of file SelectTreeElement.php.

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

◆ $minItemsToShow

int TYPO3\CMS\Backend\Form\Element\SelectTreeElement::$minItemsToShow = 5
protected

Number of items to show at last e.g. when you have only 2 items in a tree

Definition at line 57 of file SelectTreeElement.php.