API Reference
@univerjs
@univerjs/sheets-numfmt
classes
Menucurrencyservice

@univerjs/sheets-numfmt v0.4.2Docs


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 (opens in a new tab)

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 (opens in a new tab)


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 (opens in a new tab)


Copyright © 2021-2024 DreamNum Co,Ltd. All Rights Reserved.