This used to allow me to manipulate defaultGrid externally to the grid and the grid would react by hiding/showing the appropriate columns.
<ng-container *clrDgHideableColumn="{hidden: !defaultGrid}">
Name
</ng-container>
until I upgraded to clr-angular 2.0.1, then the functionality disappeared, almost like it was no longer a two way binding.
Steps to reproduce the behavior:
Clarity 1.1.0 - working preview: https://stackblitz.com/edit/angular-ellsha
Clarity 2.0.1 - same code, just the clarity dependency updated, functionality no longer works: https://stackblitz.com/edit/angular-6kjenx
As per App Device: I have tried to use ng-template instead of ng-container, along the lines of But had no joy. I also tried: It seems like there was an explicit removal of functionality. I'd like a way to be able to manipulate those columns without having to rely solely on the standard clarity clr-dg-column-toggle.Versions
Additional notes
<ng-template [clrDgHideableColumn]="{hidden: !defaultGrid}"></ng-template>
<ng-template clrDgHideableColumn [clrDgHidden]="!defaultGrid">
I confirm this is a bug. The effort to fix this bug is low. I think we could ship the fix in v2.0.3.
Hi there 馃憢, this is an automated message. To help Clarity keep track of discussions, we automatically lock closed issues after 14 days. Please look for another open issue or open a new issue with updated details and reference this one as necessary.
Most helpful comment
I confirm this is a bug. The effort to fix this bug is low. I think we could ship the fix in
v2.0.3.