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