[6.x] Listings#11868
Merged
jasonvarga merged 116 commits intouifrom Jun 30, 2025
Merged
Conversation
…out needing to pass them as props
# Conflicts: # resources/js/components/actions/ConfirmableAction.vue # resources/js/components/ui/Modal/Modal.vue
- They are no longer passed down in the listing - The loading of the actions is passed through the slot, so the parent has the ability to control how/when they are loaded. In this case, when the dropdown is hovered. - The actions prop can still be used, for example in the publish form.
…ndle refreshing the data yourself. Or, maybe just reload the page.
- ItemActions url is not required, which prevents us from needing to have a second dropdown for when a url is not defined. If no url is specified nothing really happens, it just outputs the default slot. - The loading of actions will only happen if a url is provided. - The dropdown separator is only rendered when there are both actions and prepended actions. - v-if conditions are added when forwarding the slot otherwise it considers the slot always there, it's just empty.
This reverts commit 4de154d.
…, maybe we can find a better way. not used anyway.
The component was technically rendered, but it would be empty, and you'd get an empty panel footer causing extra padding.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Where #11787 introduced a new way to create publish forms, this PR adds a new simplified way to create listings.
You pass all the props into the top level Listing component. Many props are optional.
Without passing anything into the slot, you will get an entire layout filled with appropriate components, such as a table, filters, search, pagination, and a column customizer.
If you do pass something to the slot, you will have control over the layout.
This PR also makes some other tweaks: