setMetadata - Methods - Question Editor API

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
Was this article helpful?

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