Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CurrencyControl

Facility for exchanging and displaying monetary values

  • observable user display currency can be changed

Hierarchy

  • CurrencyControl

Index

Constructors

constructor

Properties

userDisplayCurrency

userDisplayCurrency: string

Currency in which to display monetary values

Methods

convertAndFormat

  • convertAndFormat(value: any, precisionOverride?: number): string
  • Perform currency conversion and format into a nice price tag

    • optionally provide a precision override

    Parameters

    • value: any
    • Optional precisionOverride: number

    Returns string

setUserDisplayCurrency

  • setUserDisplayCurrency(currency: string): void

Generated using TypeDoc