widgetedit.widgetData.changed - Events - Author API

Author API Events

widgetedit:widgetData:changed

Fires when the widget JSON has changed.

You would want to be notified about this event firing because you might want to take actions when the widget JSON changes.

Examples

// Run each time the event is fired
authorApp.on('widgetedit:widgetData:change', function () {
    console.log('This code executes when the widget JSON has has changed.');
});

// Run only once, the first time the event is fired
authorApp.once('widgetedit:widgetData:changed', function () {
    console.log('This code executes only once, when the widget JSON has changed.');
});

Versioning

Version added: v2026.2.LTS

Was this article helpful?

Did you arrive here by accident? If so, learn more about Learnosity.