sisense.com

Dashboard Widgets Object

Available via dashboard.widgets. Represents the Dashboard's widgets, and provides methods to access & modify them.

Properties

NameTypeDescription
lengthintegerHow many widgets exist in the dashboard
$$widgetsWidgetA read-only array of widgets

Methods

get

Fetch a Widget from the Dashboard by index or unique ID

Get Widget by index

widgets.get(index)

Arguments

NameTypeRequiredDescription
indexintegerYesIndex of Widget to fetch

Returns

Widget

Example

console.log(dashboard.widgets.get(0));

Get Widget by unique ID

widgets.get(id)

Arguments

NameTypeRequiredDescription
idstringYesUnique ID to fetch Widget by

Returns

Widget

Example

console.log(dashboard.widgets.get('5f195f4cbf342a002d120e50'));
Last Updated: