i

Please enable JavaScript to view this site.

Documentation 9.3

Access methods are used to retrieve items or access specific functionalities.

 

Class methods are specific to each element, facilitating their management and incorporating their own behavior.

Access Method

 

 

Name

Description

Result

$d.getWidget(idElement)

 

Searches and gets a widget by identifier.
 
Parameter

•String idElement: Widget identifier

Widget

Class Methods

 

 

Name

Description

Result

getWidgetType()

Gets the type of widget

String

getMockupJSON(type)

Gets an example JSON, which contains the internal format of widgets with their respective type.

 

Parameter

•String type: Widget type

Object

getValue()

Gets the JSON that contains the internal format of the widgets.

Object

setJSONValue(widgetJSON, index)

Sets the JSON that contains the internal format of a widget and instantiates it.

 

Parameters

•Object widgetJSON: JSON of the widget

•Number index: Instance number

Widget

setValue()

Sets the id of a pre-existing widget and instantiates it.

 

Parameters

•Number idWidget: widget id

•Number index: Instance number

Widget

Send us your comments
Share on X Share on Linkedin Send by Email Print