dimension.elements
Returns a page of the element names in a dimension.
js
dimension.elements(dimensionName, offset, count)Parameters
| Parameter | Type | Description |
|---|---|---|
dimensionName | string | The dimension's name. |
offset | number | How many elements to skip from the start. |
count | number | The most elements to return. |
Returns
stringThe element names as a JSON string, read with JSON.parse(). Returns "Error: could not find the dimension specified." when the dimension can't be found.
Examples
js
const elements = JSON.parse(dimension.elements("time", 1, 5));