I want to update 'hideSubHeader' value after button click. The value in settings for 'hideSubHeader' gets updated but it does not reflect on my smart table.
My Settings,
settings = {
hideSubHeader: true
}
After button click,
newSettings() {
const customSettings = settings;
customSettings.hideSubHeader = false;
this.settings = Object.assign({}, customSettings);
}
u can use next:
or if u set
changeDetection: ChangeDetectionStrategy.OnPush
in component settings, make it "Default" or remove row with that settings