Create Function
Creates a new gadget item of a given gadget type with a given set of gadget configuration properties in an Envision document currently opened in the Canvas Envision Creator app.
Parameters
type: EvGadgetTypeA string, the gadget type of a new gadget item.
configProperties: EvGadgetConfigProperty[]An array of
EvGadgetConfigPropertyobjects, the gadget configuration properties of the new gadget item.bounds?: EvRectAn
EvRectobject, the position and size of the bounding box of the new gadget item.The default value is the default dimensions of the given gadget type.
zOrder?: EvObjectZOrderAn
EvObjectZOrderobject that includes:The layer item object of a layer in the current document where the new gadget item should be added. The default value is the current layer on the current page.
The position of the new gadget item in the stack of object items on the given layer. It is a zero-based index that is
0for the topmost object item on the layer and increases by1for each following object item going down the stack. The default value is0.