Scripting API / dashboard/DashboardApi
dashboard/DashboardApi
Modules
| Module | Description |
|---|---|
| External | - |
Classes
DashboardApi
Methods
accountabilityDataChart()
accountabilityDataChart(
scriptId):AccountabilityDataChartApi
Allows modification, refresh, and event binding of an Accountability Data Chart with the given id.
Parameters
| Parameter | Type |
|---|---|
scriptId |
string |
Returns
button()
button(
scriptId):ButtonDashboardItemApi
Allows modification, and event binding of a Button Dashboard Item with the given id.
Parameters
| Parameter | Type |
|---|---|
scriptId |
string |
Returns
controlChart()
controlChart(
scriptId):ControlChartApi
Allows modification, refresh, and event binding of a Control Chart with the given id.
Parameters
| Parameter | Type |
|---|---|
scriptId |
string |
Returns
dmsDataChart()
dmsDataChart(
scriptId):DMSDataChartApi
Allows modification, refresh, and event binding of a DMS Data Chart with the given id.
Parameters
| Parameter | Type |
|---|---|
scriptId |
string |
Returns
dmsTrendChart()
dmsTrendChart(
scriptId):DMSTrendChartApi
Allows modification, refresh, and event binding of a DMS Trend Chart with the given id.
Parameters
| Parameter | Type |
|---|---|
scriptId |
string |
Returns
getProperties()
getProperties():
Promise<DashboardWorkerGet>
Gets the Dashboard's properties
Returns
Promise<DashboardWorkerGet>
histogramChart()
histogramChart(
scriptId):HistogramChartApi
Allows modification, refresh, and event binding of a Histogram Chart with the given id.
Parameters
| Parameter | Type |
|---|---|
scriptId |
string |
Returns
label()
label(
scriptId):LabelDashboardItemApi
Allows modification, and event binding of a Label Dashboard Item with the given id.
Parameters
| Parameter | Type |
|---|---|
scriptId |
string |
Returns
oeeChart()
oeeChart(
scriptId):OEEChartApi
Allows modification, refresh, and event binding of an OEE Chart with the given id.
Parameters
| Parameter | Type |
|---|---|
scriptId |
string |
Returns
oeeDataChart()
oeeDataChart(
scriptId):OEEDataChartApi
Allows modification, refresh, and event binding of an OEE Data Chart with the given id.
Parameters
| Parameter | Type |
|---|---|
scriptId |
string |
Returns
onReady()
onReady(
fn):ScriptEventSubscription
Bind a function to fire when the Dashboard is ready.
Parameters
| Parameter | Type | Description |
|---|---|---|
fn |
(event) => void |
The function to fire. |
Returns
ScriptEventSubscription
onRefresh()
onRefresh(
fn):ScriptEventSubscription
Bind a function to fire when the Dashboard refreshes
Parameters
| Parameter | Type | Description |
|---|---|---|
fn |
(event) => void |
The function to fire. |
Returns
ScriptEventSubscription
paretoChart()
paretoChart(
scriptId):ParetoChartApi
Allows modification, refresh, and event binding of a Pareto Chart with the given id.
Parameters
| Parameter | Type |
|---|---|
scriptId |
string |
Returns
refresh()
refresh():
Promise<void>
Refreshes all retrievals on the Dashboard
Returns
Promise<void>
retrieval()
retrieval(
retrievalId):RetrievalApi
Allows modification, refresh, and event binding of a retrieval with the given id.
Parameters
| Parameter | Type |
|---|---|
retrievalId |
string |
Returns
scriptedChart()
scriptedChart(
scriptId):ScriptedChartApi
Allows modification, refresh, and event binding of a Scripted Chart with the given id.
Parameters
| Parameter | Type |
|---|---|
scriptId |
string |
Returns
spcDataChart()
spcDataChart(
scriptId):SPCDataChartApi
Allows modification, refresh, and event binding of an SPC Data Chart with the given id.
Parameters
| Parameter | Type |
|---|---|
scriptId |
string |
Returns
statsGrid()
statsGrid(
scriptId):StatsGridChartApi
Allows modification, refresh, and event binding of a Stats Grid with the given id.
Parameters
| Parameter | Type |
|---|---|
scriptId |
string |
Returns
taskDataChart()
taskDataChart(
scriptId):TaskDataChartApi
Allows modification, refresh, and event binding of a Task Data Chart with the given id.
Parameters
| Parameter | Type |
|---|---|
scriptId |
string |
Returns
updateProperties()
updateProperties(
newProps):Promise<void>
Updates the Dashboard with new values.
Parameters
| Parameter | Type | Description |
|---|---|---|
newProps |
DashboardWorkerUpdate |
Object with new properties to use |
Returns
Promise<void>