Skip to content

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.

View source

Public Methods ​

MethodDescription
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 in src/icons/solid/.
  • iconColor – The color of the icon.

View source

Returns ​

array{label: string, icon: string, iconColor?: \craft\enums\Color|string}[]