gridjs
gridjs copied to clipboard
re-render the grid after a particular event like clcking a button
Is your feature request related to a problem? Please describe. I am using grid.js in my admin panel of a project, where i have a button in my action's column. i want to refresh the grid after the click event of button. i don't want to reload the entire page again to show updated data.
i am using vanilla javaScript only.
Additional context
you could listen on cellClick
event. the callback definition is in here
https://github.com/grid-js/gridjs/blob/5fae726edb4471f517115bc377507e7b56453be4/src/view/table/events.ts#L6
Hey @abhaysinghs772 how did you add custom icons /buttons inside Grid.js?
@vicentematus you can put html inside the cell. its on the documentation.
@vicentematus you can put html inside the cell. its on the documentation.
Thank you very much. Now it's working
I need that too, very confused on how to update after some data change, I'll attempt to forceRender but I'm unsure that is what I need
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I have the same issue: on button click in a cell the table re-renders.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.