grid-js / gridjs

Advanced table plugin
https://gridjs.io
MIT License
4.39k stars 240 forks source link

Add examples how to hide column(s) via Events #1439

Open ecofi opened 5 months ago

ecofi commented 5 months ago

Is your feature request related to a problem? Please describe.

I would like to see an example how a row could be address, e.g. toggle row appearance hide/show via events. The example illustrate how to access the data but not how to address rendering of a specific row.

Describe the solution you'd like

An example with a button to toggle appearance of data row 2

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Accessing the grid from "outside" after rendering via DOM adding attributes and eventListener to achieve collapse effect. However, this would increase complexity and undermines the idea to access from within grid class.

Additional context Add any other context or screenshots about the feature request here.