Repeater item id
Hello,
Is there a way to access the item id (or uuid) within the element? For example, to have it available in the
>formatStateUsing(callback)
Thanks in advance.Solution:Jump to solution
inject
$component
and use str($component->getId())->beforeLast('.')->afterLast('.')
2 Replies
Solution
inject
$component
and use str($component->getId())->beforeLast('.')->afterLast('.')
@Leandro Ferreira That worked. Thank you π