nhn / tui.grid

🍞🔡 The Powerful Component to Display and Edit Data. Experience the Ultimate Data Transformer!
http://ui.toast.com/tui-grid/
MIT License
2.42k stars 394 forks source link

Is there a way to link GridEvent from the button outside the grid? #1912

Closed cmun2 closed 1 year ago

cmun2 commented 1 year ago

Summary I am working on making a dropdown checkbox menu button that provides a way to hide specific column in order to provide users to customize their Grid setting(currently using Grid.hideColumn) , showing the column header they only want to watch.

I am trying to link component's GridEvent's click event to the subcomponent checkbox menu but kinda struggling here.
Is there a recommendation for linking external button from grid to access into grid's internal option?

Screenshots image

Version Write the version of the grid you are currently using. 4.20.0

cmun2 commented 1 year ago

I solved this issue by using customized outer button and sending event to the toastgrid component