How can i get the updated column list from the datamanager after hiding the columns?
xerovit-git opened this issue · 2 comments
xerovit-git commented
We can hide and move the positions of the column inside the action button.
But how do we get the updated columns list? Is there any event or subscription that we can use?
mazdik commented
maybe this will help you:
ngOnInit() {
const subRowsChanged = this.dataManager.events.rowsChanged$.subscribe((data) => {
console.log(this.dataManager.preparedColumns);
});
this.subscriptions.push(subRowsChanged);
}
ngOnDestroy() {
this.subscriptions.forEach(s => s.unsubscribe());
}