Typedef

ObservableChangeEvent (utils)

@ckeditor/ckeditor5-utils/src/observablemixin

typedefobject

Fired when a property changed value.

observable.set( 'prop', 1 );

observable.on<ObservableChangeEvent<number>>( 'change:prop', ( evt, propertyName, newValue, oldValue ) => {
	console.log( `${ propertyName } has changed from ${ oldValue } to ${ newValue }` );
} );

observable.prop = 2; // -> 'prop has changed from 1 to 2'

Filtering

Type parameters

Properties

  • args : tuple

  • name : 'change' | `change:${ string }`

Fired by