Clarity Datagrid (Hide/Show) Columns #1254
Answered
by
kevinbuhmann
DrunkenApollo
asked this question in
Q&A
-
Is there a way to track the state of the grids columns? |
Beta Was this translation helpful? Give feedback.
Answered by
kevinbuhmann
Feb 19, 2024
Replies: 1 comment
-
Yes, there is a My example uses |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
kevinbuhmann
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, there is a
clrDgHiddenChange
event that you can handle. Here is an example: https://stackblitz.com/edit/clarity-light-theme-clr17-yua7joMy example uses
[(clrDgHidden)]
for two-way binding, but you can de-sugar it to call an event handler method if needed:[clrDgHidden]="value" (clrDgHiddenChange)="onHiddenChange(...)"
.