Properties
formatter
formatter: ((unit: string, value: number, data: T) => string)
Type declaration
-
- (unit: string, value: number, data: T): string
-
Parameters
-
unit: string
-
value: number
-
data: T
Returns string
options
options: {
text: string;
value: string;
}[]
parser
parser: ((unit: string, value: string | number, data: T) => number)
Type declaration
-
- (unit: string, value: string | number, data: T): number
-
Parameters
-
unit: string
-
value: string | number
-
data: T
Returns number
Represents a unit conversion object with formatting, parsing, and unit options.