DropDownHeader implements DropDownItemInterface, Stringable
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);
Table of Contents
Interfaces
- DropDownItemInterface
- Stringable
Properties
- $label : string|null
Methods
- __toString() : string
- getLabel() : string|null
- getType() : string
- isValid() : bool
- render() : string
- setLabel() : self
Properties
$label
protected
string|null
$label
= null
Methods
__toString()
public
__toString() : string
Return values
stringgetLabel()
public
getLabel() : string|null
Return values
string|nullgetType()
public
getType() : string
Return values
stringisValid()
public
isValid() : bool
Return values
boolrender()
public
render() : string
Return values
stringsetLabel()
public
setLabel(string|null $label) : self
Parameters
- $label : string|null