getWidgetMetadata()
Gets the current metadata JSON of the widget being edited in an Item.
You would want to use this method so that you can display the Question metadata being edited in your application, for example.
Examples
authorApp.getWidgetMetadata();
Arguments
None.
Return value
- object
The current Widget metadata JSON. See widgetMetadata for more information.
- boolean
Returns
false
if not in the Widget editor view.
Type definitions
widgetMetadata object
-
name stringWidget template name.
-
template_reference stringWidget template reference.
-
created_through stringWidget template name.
-
translated_through stringWidget template reference.
See Widget Template References for Question Editor Customization & Navigation for more information.