evCreate API 5.7 Help

GetType Function

Returns the gadget type of a given gadget item from an Envision document currently opened in the Canvas Envision Creator app.

GetType(obj: [[[EvItem|canvas-envision-document-items.html#object-items]]]): Promise<[[[EvGadgetType|evgadgettype-type-alias.html]]]>

Parameters

obj: EvItem

An Object item object, a gadget item from the Envision document currently opened in the Canvas Envision Creator app whose gadget type should be obtained.

If a given object item is not a gadget, the function throws an error.

Return value

Promise<EvGadgetType>

A Promise that, if fulfilled, resolves to a string that is the gadget type of the given gadget item in the current document.

02 April 2025