I want to render blade component in column closure. #1054
tahaRazaTalibi
started this conversation in
Ideas
Replies: 3 comments 3 replies
-
Hello!, Can you give more examples and what would that affect the powergrid?. Thanks |
Beta Was this translation helpful? Give feedback.
1 reply
-
Thumbs up for this feature request! I would like to render a blade component with a selectbox in a table cell and would be very happy if this could be done easily. Has anyone already found a solution or workaround for this? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hey @lsmedia! You could do something like this:
Hope this help! |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
⚡ PowerGrid ⚡ Feature Request
Summary
I would like to request the ability to render Blade components within column closures in Livewire's PowerGrid.
Why is this needed?
Currently, column closures in PowerGrid only support raw HTML or simple PHP rendering logic. However, using Blade components within column closures would provide several benefits. It would enhance modularity, promote consistent UI patterns, improve readability and reusability, and seamlessly integrate with the existing Laravel ecosystem.
Suggested Solution(s)
I propose enabling the use of Blade components directly within column closures. This would allow developers to encapsulate complex rendering logic within reusable Blade components, enhancing code maintainability and promoting consistency throughout the application.
Related issue(s)/PR(s)
N/A
Beta Was this translation helpful? Give feedback.
All reactions