awcodes / filament-table-repeater

A modified version of the Filament Forms Repeater to display it as a table.
MIT License
188 stars 42 forks source link

Add ability to hide empty label if there're no records #56

Closed howdu closed 11 months ago

howdu commented 11 months ago

Add the ability to pass false to emptyLabel and only show the add button when there are no records.

TableRepeater::make('products')
    ->emptyLabel(false)
Screenshot 2023-08-10 at 17 46 57
awcodes commented 11 months ago

Jeez. LOL.

I'll have a look at all this this weekend and get back to you.

howdu commented 11 months ago

No worries thanks - Yeah it looks like a lot of changes but most of it's just indention. I needed to wrap quite a bit into an IF statement.

awcodes commented 11 months ago

Thanks.