widgetedit.editor.ready - Events - Author API

Author API Events

widgetedit:editor:ready

Fires when the widget editor (Questions and Features) interface has loaded.

You would want to be notified about this event firing, because you might want to wait for the widget editor interface to load before running your own application customizations, for example.

For example, it is fired after the init() or reset() methods have successfully completed for the widget editor.

The once() method can be used to listen to this event.

Examples

// Run each time the event is fired
authorApp.on('widgetedit:editor:ready', function () {
    console.log('This code executes when the widget editor interface has loaded.');
});

// Run only once, the first time the event is fired
authorApp.once('widgetedit:editor:ready', function () {
    console.log('This code executes only once, when the widget editor interface has loaded.');
});
Was this article helpful?

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