Skip to content

cube.getName ​

Returns the name of a cube.

js
cube.getName(cubeId)

Parameters ​

ParameterTypeDescription
cubeIdstringThe cube's id.

Returns ​

string

The cube's name, or "ERROR: Cube not found." when the id isn't recognised.

Examples ​

js
const cubeName = cube.getName("123");