Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Aug 12, 2023
Merged

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

merged 1 commit into from
Aug 12, 2023

Conversation

howdu
Copy link
Contributor

@howdu howdu commented Aug 10, 2023

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

@howdu howdu changed the title Add ability to hide empty label if there're no resources Add ability to hide empty label if there're no records Aug 10, 2023
@awcodes
Copy link
Owner

awcodes commented Aug 10, 2023

Jeez. LOL.

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

@howdu
Copy link
Contributor Author

howdu commented Aug 10, 2023

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
Copy link
Owner

awcodes commented Aug 12, 2023

Thanks.

@awcodes awcodes merged commit 6595b61 into awcodes:2.x Aug 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants