@univerjssheets-numfmtindexclassesMenucurrencyservice

@univerjs/sheets-numfmt v0.5.0-beta.1Docs


Class: MenuCurrencyService

Constructors

new MenuCurrencyService()

new MenuCurrencyService(): MenuCurrencyService

Returns

MenuCurrencyService

Properties

PropertyModifierTypeDefined in
currencySymbol$readonlyObservable< | "AT" | "US" | "CA" | "GB" | "JP" | "IN" | "AU" | "CN" | "KR" | "RU" | "BE" | "CY" | "EE" | "FI" | "FR" | "DE" | "GR" | "IE" | "IT" | "LV" | "LT" | "LU" | "MT" | "NL" | "PT" | "SK" | "SI" | "ES">sheets-numfmt/src/service/menu.currency.service.ts:22

Methods

getCurrencySymbol()

getCurrencySymbol(): 
  | "AT"
  | "US"
  | "CA"
  | "GB"
  | "JP"
  | "IN"
  | "AU"
  | "CN"
  | "KR"
  | "RU"
  | "BE"
  | "CY"
  | "EE"
  | "FI"
  | "FR"
  | "DE"
  | "GR"
  | "IE"
  | "IT"
  | "LV"
  | "LT"
  | "LU"
  | "MT"
  | "NL"
  | "PT"
  | "SK"
  | "SI"
  | "ES"

Returns

| "AT" | "US" | "CA" | "GB" | "JP" | "IN" | "AU" | "CN" | "KR" | "RU" | "BE" | "CY" | "EE" | "FI" | "FR" | "DE" | "GR" | "IE" | "IT" | "LV" | "LT" | "LU" | "MT" | "NL" | "PT" | "SK" | "SI" | "ES"

Defined in

sheets-numfmt/src/service/menu.currency.service.ts:31


setCurrencySymbolByCountryCode()

setCurrencySymbolByCountryCode(symbol): void

Set the currency symbol by setting the country code.

Parameters

ParameterType
symbol| "AT" | "US" | "CA" | "GB" | "JP" | "IN" | "AU" | "CN" | "KR" | "RU" | "BE" | "CY" | "EE" | "FI" | "FR" | "DE" | "GR" | "IE" | "IT" | "LV" | "LT" | "LU" | "MT" | "NL" | "PT" | "SK" | "SI" | "ES"

Returns

void

Defined in

sheets-numfmt/src/service/menu.currency.service.ts:27