Option
class Option implements ItemInterface
Constants
| ICON_SHAPE_CIRCLE |
|
| ICON_SHAPE_ROUNDED_BOX |
|
Methods
No description
Prints the title of this option.
No description
No description
Returns the Icon Background Color (HEX String)
No description
Returns the Icon Foreground Color (HEX String)
Returns the Icon Shape
No description
No description
No description
No description
No description
Transforms the array structure of this option into a JSON string.
No description
No description
Mark this entry as disalbed (can not be selected by user)
Sets an Icon Background Color (HEX String)
No description
Sets an Icon Foreground Color (HEX String)
Sets an Icon Shape (self::ICON_SHAPE_CIRCLE, self::ICON_SHAPE_ROUNDED_BOX)
No description
No description
Details
at line 209
protected
__construct($key, string $title, string|null $description = null, string|null $iconClass = null, string|null $imgURL = null)
No description
at line 273
string
__toString()
Prints the title of this option.
at line 217
static Option
create($key, string $title, string|null $description = null, string|null $iconClass = null, string|null $imgURL = null)
No description
at line 68
string|null
getDescription()
No description
at line 160
string
getIconBgColor()
Returns the Icon Background Color (HEX String)
at line 85
string|null
getIconClass()
No description
at line 142
string
getIconFgColor()
Returns the Icon Foreground Color (HEX String)
at line 178
string
getIconShape()
Returns the Icon Shape
at line 103
string|null
getImgURL()
No description
at line 203
bool
getIsDisabled()
No description
at line 185
bool
getIsSeparator()
No description
at line 34
string
getKey()
No description
at line 51
string
getTitle()
No description
at line 226
array
jsonSerialize()
Transforms the array structure of this option into a JSON string.
at line 277
string
renderIconHtml()
No description
at line 77
Option
setDescription(string|null $description)
No description
at line 195
Option
setDisabled(bool $isDisabled = true)
Mark this entry as disalbed (can not be selected by user)
at line 151
Option
setIconBgColor(string $color)
Sets an Icon Background Color (HEX String)
at line 94
Option
setIconClass(string|null $iconClass)
No description
at line 133
Option
setIconFgColor(string $color)
Sets an Icon Foreground Color (HEX String)
at line 169
Option
setIconShape(string $shape)
Sets an Icon Shape (self::ICON_SHAPE_CIRCLE, self::ICON_SHAPE_ROUNDED_BOX)
at line 113
Option
setImgURL(string|null $imgURL)
No description
at line 123
Option
setIsSeparator(bool $bool = true)
No description
at line 43
Option
setKey(int|string $key)
No description
at line 60
Option
setTitle(string $title)
No description
at line 230
array
toArray()
No description