observerObject
An optional observer for the options store.
Upon field modification, the optionsChange(e) method on the observer will be called with a single argument containing two fields:
- field - The fully qualified field name
- value - The new field value
Example
<script>
var myObserver = {
optionsChange: function(e) {
console.log("Option changed: " + e.field + " = " + e.value);
}
};
var options = new kendo.drawing.OptionsStore({
color: "red",
size: 10
});
// Set the observer
options.observer = myObserver;
// This will trigger the optionsChange callback
options.set("color", "blue"); // Logs: "Option changed: color = blue"
options.set("size", 15); // Logs: "Option changed: size = 15"
</script>