F
Filament16mo ago
Daniel

Change repeater items programmatically

Is it possible to change the number of Repeater programmatically, i. e. based on an entered value of another field?
3 Replies
toeknee
toeknee16mo ago
A repeater is just a json dataset so in theory mountUsing and passing the dataset in could work depending on how you are wanting to do it
Dan Harrin
Dan Harrin16mo ago
on the field, $set() the contents of the repeater in afterStateUpdated()
Daniel
Daniel16mo ago
i will try it, thanks a lot!