Indicative ​
- Type
- Interface
- Namespace
- craft\base
- Implemented by
- craft\models\EntryType
- Since
- 5.6.0
Indicative defines the common interface to be implemented by components that have indicator icons within their chips.
Public Methods ​
Method | Description |
---|---|
getIndicators() | Returns the component’s indicators. |
getIndicators()
​
Returns the component’s indicators.
Each indicator should be a nested array with the following keys:
label
– The indicator label.icon
– The indicator icon name. System icons can be found insrc/icons/solid/
.iconColor
– The color of the icon.
Returns ​
array{label: string, icon: string, iconColor?: \craft\enums\Color|string}[]