‪TYPO3CMS  ‪main
TYPO3\CMS\Backend\Template\Components\Buttons\DropDown\DropDownHeader Class Reference
Inheritance diagram for TYPO3\CMS\Backend\Template\Components\Buttons\DropDown\DropDownHeader:
TYPO3\CMS\Backend\Template\Components\Buttons\DropDown\DropDownItemInterface

Public Member Functions

 getLabel ()
 
 setLabel (?string $label)
 
 getType ()
 
 isValid ()
 
 render ()
 
 __toString ()
 

Protected Attributes

string $label = null
 

Detailed Description

DropDownHeader

This dropdown item type renders a noninteractive text element to group items and gives more meaning to a set of options.

$item = GeneralUtility::makeInstance(DropDownHeader::class) ->setLabel('Label'); $dropDownButton->addItem($item);

Definition at line 29 of file DropDownHeader.php.

Member Function Documentation

◆ __toString()

TYPO3\CMS\Backend\Template\Components\Buttons\DropDown\DropDownHeader::__toString ( )

◆ getLabel()

◆ getType()

TYPO3\CMS\Backend\Template\Components\Buttons\DropDown\DropDownHeader::getType ( )

◆ isValid()

TYPO3\CMS\Backend\Template\Components\Buttons\DropDown\DropDownHeader::isValid ( )

◆ render()

◆ setLabel()

TYPO3\CMS\Backend\Template\Components\Buttons\DropDown\DropDownHeader::setLabel ( ?string  $label)

Member Data Documentation

◆ $label

string TYPO3\CMS\Backend\Template\Components\Buttons\DropDown\DropDownHeader::$label = null
protected