Data Tracker Widget
- Source:
Properties:
Name | Type | Description |
---|---|---|
selectors |
string | DOM selector |
states |
string | CSS class names for different states |
Methods
(inner) draw_trend(trendData, showChart) → {element}
- Source:
Draw trendline SVG chart
Parameters:
Name | Type | Description |
---|---|---|
trendData |
object | data to populate the chart template |
showChart |
boolean | whether to show the chart or just the summary text |
Returns:
And SVG chart object with trend data populated
- Type
- element
(inner) getData($target, type, params)
- Source:
Get data for specified ajax request type and params
Parameters:
Name | Type | Description |
---|---|---|
$target |
element | |
type |
string | |
params |
object |
(inner) init()
- Source:
Get data for data tracker to display
(inner) populate($target, data)
- Source:
Populate data into target element
Parameters:
Name | Type | Description |
---|---|---|
$target |
element | |
data |
object |