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:
inject $component and use str($component->getId())->beforeLast('.')->afterLast('.')
Jump to solution
2 Replies
Solution
LeandroFerreira
LeandroFerreira7mo ago
inject $component and use str($component->getId())->beforeLast('.')->afterLast('.')
kennyhorna
kennyhornaOP7mo ago
@Leandro Ferreira That worked. Thank you 🙂

Did you find this page helpful?