onMetadataChanged now fires MapChangeArgs events, allowing for a granular event handling. The following example intercepts the change of the column’s conditional color-coding settings:
demog.onMetadataChanged
.pipe(rxjs.operators.filter(data => data.args.key === DG.TAGS.COLOR_CODING_CONDITIONAL))
.subscribe((data) => info(`${data.args.change} - ${data.args.key} - ${data.args.value}`));
Here is the MapChangeArgs interface:
export interface MapChangeArgs<K, V> {
sender: any;
change: string;
key: K;
value: V;
}