Question Editor API Methods
reset()
To reset data of rendered views and empty the json of given question/feature. For default global layout, the method will set the view back to the widget selection screen. It can optionally pass a widget_type to change between feature and response types in a single instance.
You need to make sure that you don't reset
while Question Editor is still initializing, as this may lead to unexpected results.
You should only use reset() after readyListener
was called.
Examples
document.getElementById('reset').onclick = function () {
questionEditorApp.reset('feature');
};
Arguments
-
widget_type string
Return value
None (undefined
).