F
Filament13mo ago
Eth

how can I display a repeater in table

I’m trying to display option only from the json array called options, I’m storing the whole repeater as an array in db do I need to separate them or?
No description
No description
2 Replies
Lara Zeus
Lara Zeus13mo ago
not sure how you want to fit all items in the repeater in one column 🙂 but try something like this
TextColumn::make('options')
->formatStateUsing(fn($state) => $state['price'])
->badge(),
TextColumn::make('options')
->formatStateUsing(fn($state) => $state['price'])
->badge(),
Eth
EthOP13mo ago
Yes this is what i was going for (option name rather than the price) ! Thanks 😊
Want results from more Discord servers?
Add your server