OptionsObserver

Defines the interface of an object that listens to changes on an OptionsStore.

See OptionsStore

Methods

optionsChange

Called when an option changes.

import { OptionsStore, OptionsChange } from '@progress/kendo-drawing';

class Observer implements OptionsObserver {
  optionsChange(change: OptionsChange) {
    console.log(change.field, change.value);
  }
}

const options = new OptionsStore();
options.observer = new Observer();

options.set('foo', 'bar');

Parameters

change OptionsChange

Detailed information for the change.

 /