getWidget - Methods - Author API

Author API Methods


Gets the Widget JSON of the current Widget (Question or Feature) being edited in an Item.

You would want to use this method so that you can display the contents of the Question being edited, for example.


var widgetJSON = authorApp.getWidget();



Return value

Type widgetJson

The current widget JSON.

Type boolean

Returns false if not in the Widget editor view.

Related articles

  • The setWidget() method, which allows you to overwrite the Widget JSON of the current Widget.
Was this article helpful?

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