- Preparing search index...
- The search index is not available
TESSA Web API
Class FormattingHelperHelper
Methods
format
- format(displayFormat: string, ...values: readonly unknown[]): string
-
Parameters
-
displayFormat: string
-
Rest
...values: readonly unknown[]
Returns string
format24Time
- format24Time(value: string | number, treatValueAsUtc?: boolean, settings?: Partial<FormattingSettings>): string
-
Parameters
-
value: string | number
-
treatValueAsUtc: boolean = false
-
Returns string
formatBoolean
- formatBoolean(value: boolean, settings?: Partial<FormattingSettings>): string
-
Returns string
formatDate
- formatDate(value: string | number, treatValueAsUtc?: boolean, settings?: Partial<FormattingSettings>): string
-
Parameters
-
value: string | number
-
treatValueAsUtc: boolean = false
-
Returns string
formatDateTime
- formatDateTime(value: string | number, treatValueAsUtc?: boolean, showOffset?: boolean, settings?: Partial<FormattingSettings>): string
-
Parameters
-
value: string | number
-
treatValueAsUtc: boolean = false
-
showOffset: boolean = false
-
Returns string
formatDateTimeWithoutSeconds
- formatDateTimeWithoutSeconds(value: string | number, treatValueAsUtc?: boolean, settings?: Partial<FormattingSettings>): string
-
Parameters
-
value: string | number
-
treatValueAsUtc: boolean = false
-
Returns string
formatDateWithSpecifier
- formatDateWithSpecifier(value: string | number, specifier: string, treatValueAsUtc?: boolean, settings?: Partial<FormattingSettings>): string
-
Parameters
-
value: string | number
-
specifier: string
-
treatValueAsUtc: boolean = false
-
Returns string
formatDecimal
- formatDecimal(value: string, specifier?: string, settings?: Partial<FormattingSettings>): string
-
Parameters
-
value: string
-
Optional
specifier: string
-
Returns string
formatNumber
- formatNumber(num: number, separateGroups?: boolean, settings?: Partial<FormattingSettings>): string
-
Parameters
-
num: number
-
separateGroups: boolean = true
-
Returns string
formatNumberWithSpecifier
- formatNumberWithSpecifier(num: number, specifier: string, settings?: Partial<FormattingSettings>): string
-
Parameters
-
num: number
-
specifier: string
-
Returns string
formatTime
- formatTime(value: string | number, treatValueAsUtc?: boolean, settings?: Partial<FormattingSettings>): string
-
Parameters
-
value: string | number
-
treatValueAsUtc: boolean = false
-
Returns string
formatTimeWithoutSeconds
- formatTimeWithoutSeconds(value: string | number, treatValueAsUtc?: boolean, settings?: Partial<FormattingSettings>): string
-
Parameters
-
value: string | number
-
treatValueAsUtc: boolean = false
-
Returns string
formatTypedValue
- formatTypedValue(field: TypedField<FieldType, string | number | boolean>, unknownValue?: string, specifier?: string, settings?: Partial<FormattingSettings>): string
-
Parameters
-
-
unknownValue: string = ''
-
Optional
specifier: string
-
Returns string
formatValue
- formatValue(value: unknown, unknownValue?: string, specifier?: string, settings?: Partial<FormattingSettings>): string
-
Parameters
-
value: unknown
-
Optional
unknownValue: string
-
Optional
specifier: string
-
Returns string
formatWithSettings
- formatWithSettings(settings: Partial<FormattingSettings>, displayFormat: string, ...values: readonly unknown[]): string
-
Parameters
-
-
displayFormat: string
-
Rest
...values: readonly unknown[]
Returns string
Форматирует число.
Returns
Форматированное число.