ServicesConfiguratorUiCallback.Internal.UnitMeasureFormatter
configurator-core/src/services/configurator-ui-callback.internal.UnitMeasureFormatter
Table of contents
Constructors
Methods
Constructors
constructor
• new UnitMeasureFormatter()
Methods
formatMMValueToUnitString
â–¸ formatMMValueToUnitString(aValue, aUnit, aStringType): string
Parameters
Returns
string
formatMMValueWithReqMaxLength
â–¸ formatMMValueWithReqMaxLength(aValue, aUnit, reqMaxSize): string
Parameters
Returns
string
formatNumber
â–¸ formatNumber(aValue, digit): string
Parameters
aValue
number
digit
number
Returns
string
formatSquareMMValueToUnitString
â–¸ formatSquareMMValueToUnitString(aValue, aUnit): string
Parameters
aValue
number
aUnit
Returns
string
init
â–¸ init(mmLabel, cmLabel, ftShortLabel, ftLongLabel, inchShortLabel, inchLongLabel, sqMLabel, sqftLabel, showExactValue, maxPrecision, showFractionalUnitString): void
Parameters
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
aString
string
Returns
boolean
isParseableUnitString
â–¸ isParseableUnitString(aString, aUnit): boolean
Parameters
aString
string
aUnit
Returns
boolean
parseMMValueFromUnitString
â–¸ parseMMValueFromUnitString(aString, aUnit): number
Parameters
aString
string
aUnit
Returns
number
parseNumber
â–¸ parseNumber(aString): number
Parameters
aString
string
Returns
number
parseSquareMMValueFromUnitString
â–¸ parseSquareMMValueFromUnitString(aString, aUnit): number
Parameters
aString
string
aUnit
Returns
number
showExactValues
â–¸ showExactValues(shouldeI): void
Parameters
shouldeI
boolean
Returns
void
Last updated