OptionsStore
Class
Stores nested settings and notifies an (optional) observer of changes.
Definition
Package:@progress/kendo-drawing
Syntax:
ts
import { OptionsStore } from '@progress/kendo-drawing';
const options = new OptionsStore({
foo: {
bar: true
}
});
Methods
Gets the value of the specified option.
Parameters:fieldstring
The field name to retrieve. Has to be a fully qualified name for nested options. For example, "foo.bar".
any
- The current option value.
Sets the value of the specified option.
Parameters:fieldstring
The name of the option to set. Has to be a fully qualified name for nested options. For example, "foo.bar".
The new option value. If the new value is the same as the old value, the operation will not notify the observer, if any.
Properties
An optional observer for the options store. Upon field modification, the optionsChange(e) method on the observer will be called and will provide information for the change.