Skip to main content

beforeChangeProperties

fires before configuration attributes of the control are changed dynamically

beforeChangeProperties: (properties: IButtonProps) => boolean | void;

Parameters:

properties: object - an object with configuration attributes of the control and their new values

Returns:

Return false to cancel the default action of the event; otherwise, return true.

Example

form.getItem("button").events.on("BeforeChangeProperties", function(properties) {    console.log("BeforeChangeProperties", properties);    return true;});

Change log:

added in v7.0