Interface LevelAttribute
Date Level Attribute associated with a granularity - for example, Years, Quarters, Months, Days.
Methods
format
format(
format):LevelAttribute
Gets a formatted instance with the given definition.
Parameters
| Parameter | Type | Description |
|---|---|---|
format | string | Format string |
Returns
A formatted instance of this level attribute
getFormat
getFormat():
string|undefined
String formatting of this instance.
Returns
string | undefined
string formatting
getSort
getSort():
Sort
Gets the sort definition.
Returns
The Sort definition
sort
sort(
sort):LevelAttribute
Gets a sorted LevelAttribute with the given definition
Parameters
| Parameter | Type | Description |
|---|---|---|
sort | Sort | Sort definition |
Returns
A sorted instance of this level attribute
Properties
expression
readonlyexpression:string
Expression representing the element in a JAQL query. It is typically populated automatically in the data model generated by the data model generator.
granularity
readonlygranularity:string
Granularity of the level. See supported granularity values at DateLevels.
name
name:
string
Element name
type
readonlytype:string
Element type