You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm considering whether this is actually worth doing. The more I try to make the functionality, The more I think it would be easier to just create the buttons manually, rather than actually implement them this way.
If we create UI integrations for frameworks, maybe it'd be nice to add to the framework implementation, however the core package doesn't really need to know about them, and anything we can do to implement them I fear will just be bloat.
I don't think this should be a core function, maybe the user wants to implement an action handled by Javascript or something else; also the package doesn't mix HTML and PHP until now, I think is better to keep it that way.
We need to be able to add
actions
to the grid, to be appended to each row.I imagine it working like this:
$grid->addRowAction('view', '/view/url/for/row')
$grid->addRowAction('edit', '/edit/url/for/row')
$grid->addRowAction('delete', '/delete/url/for/row')
maybe the url for the row action should be a callback which gets passed the row.
When rendering the rowAction, it should also have a callback which returns the html.
The text was updated successfully, but these errors were encountered: