For the complete documentation index, see llms.txt. This page is also available as Markdown.

ServicesConfiguratorUiCallback.Internal.UnitMeasureFormatter

Table of contents

Constructors

Methods

Constructors

constructor

new UnitMeasureFormatter()

Methods

formatMMValueToUnitString

formatMMValueToUnitString(aValue, aUnit, aStringType): string

Parameters

Name
Type

aValue

number

aUnit

Unit

aStringType

UnitStringType

Returns

string


formatMMValueWithReqMaxLength

formatMMValueWithReqMaxLength(aValue, aUnit, reqMaxSize): string

Parameters

Name
Type

aValue

number

aUnit

Unit

reqMaxSize

number

Returns

string


formatNumber

formatNumber(aValue, digit): string

Parameters

Name
Type

aValue

number

digit

number

Returns

string


formatSquareMMValueToUnitString

formatSquareMMValueToUnitString(aValue, aUnit): string

Parameters

Name
Type

aValue

number

aUnit

Unit

Returns

string


init

init(mmLabel, cmLabel, ftShortLabel, ftLongLabel, inchShortLabel, inchLongLabel, sqMLabel, sqftLabel, showExactValue, maxPrecision, showFractionalUnitString): void

Parameters

Name
Type

mmLabel

string

cmLabel

string

ftShortLabel

string

ftLongLabel

string

inchShortLabel

string

inchLongLabel

string

sqMLabel

string

sqftLabel

string

showExactValue

boolean

maxPrecision

number

showFractionalUnitString

boolean

Returns

void


isParseableNumber

isParseableNumber(aString): boolean

Parameters

Name
Type

aString

string

Returns

boolean


isParseableUnitString

isParseableUnitString(aString, aUnit): boolean

Parameters

Name
Type

aString

string

aUnit

Unit

Returns

boolean


parseMMValueFromUnitString

parseMMValueFromUnitString(aString, aUnit): number

Parameters

Name
Type

aString

string

aUnit

Unit

Returns

number


parseNumber

parseNumber(aString): number

Parameters

Name
Type

aString

string

Returns

number


parseSquareMMValueFromUnitString

parseSquareMMValueFromUnitString(aString, aUnit): number

Parameters

Name
Type

aString

string

aUnit

Unit

Returns

number


showExactValues

showExactValues(shouldeI): void

Parameters

Name
Type

shouldeI

boolean

Returns

void

Last updated