✅ You are viewing documentation for the latest version of Compose SDK.
Version:
# Interface Measure
Base interface for measure, which is typically numeric aggregation over Attribute(s). See measureFactory for how to create measures.
# Methods
# format
format(
format):Measure
Formats the measure according to the given format definition.
# Parameters
| Parameter | Type | Description |
|---|---|---|
format | string | Format string |
# Returns
A formatted instance of this measure
# getFormat
getFormat():
string|undefined
Gets the formatting string of this measure.
# Returns
string | undefined
Formatting string
# getSort
getSort():
Sort
Gets the sort definition of this measure.
# Returns
# sort
sort(
sort):Measure
Sorts the measure by the given sort definition.
# Parameters
| Parameter | Type | Description |
|---|---|---|
sort | Sort | Sort definition |
# Returns
A sorted instance of measure
# Properties
# name
name:
string
Element name
# type
readonlytype:string
Element type