mazdik/ng-mazdik

How can i get the updated column list from the datamanager after hiding the columns?

xerovit-git opened this issue · 2 comments

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?

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());
  }

dt-column-toggler.component source