Skip to content

Kirby 5.2.1

$modelItem->key()

Returns a (unique) key that can be used for Vue's :key attribute

$modelItem->key(): string

Return type

string

This method modifies the existing $modelitem object it is applied to and returns it again.

Parent class

Kirby\Panel\Ui\Item\ModelItem inherited from Kirby\Panel\Ui\Component