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
Return value
- boolean If metadata is an object, true is returned, otherwise false