spUtil - get(String widgetId)

Gets a widget model by ID or sys_id.

Use this method to embed a widget model in a widget client script. The callback function returns the full widget model.

Table 1. Parameters
Name Type Description
widgetId String The widget ID or sys_id of the widget to embed.
Table 2. Returns
Type Description
Object The model of the embedded widget.
spUtil.get("widget-cool-clock").then(function(response) {
    c.coolClock = response;
});