Question Editor API Methods
setMetadata()
Used to set the metadata of a widget. It only has an effect if called before setWidget
. Instead of calling setMetadata
and then setWidget
, you can call setWidget
with the widget's json and metadata as arguments.
Arguments
-
metadata object
Metadata object of the widget.
Return value
Type boolean
If metadata is an object, true is returned, otherwise false