F
Filament15mo ago
skyrowl

Use custom action buttons on repeater/builder

Hey, I was wondering if there's any way other than creating a new form field to customize action buttons on Repeater and Builder ? My use case is that I need to disable deletion on some items according to the model datas, if anyone could help me I'd greatly appreciate it!
2 Replies
Patrick Boivin
Patrick Boivin15mo ago
I don't think there's a way to customize the repeater actions per row without overriding the repeater.blade.php view... I don't see a hook in there for that. It's a cool use case though!
skyrowl
skyrowl15mo ago
Thx for your reply ! I ended extending and edited the blade, also added some magic getDisabledDeletionAttribute in my models so that I can have a unique logic on each I pretty think it's the easiest way I could figure this out if anyone is willing to do something similar