Hide

YetaWF Documentation

Display
Print

CurrencyISO4217 Component

CurrencyISO4217 (Display)

Displays the currency name given a model with a 3 character currency ID. If the model is null, nothing is rendered.

Model Type: string

The list of currencies is located at ./CoreComponents/Core/Addons/_Templates/CurrencyISO4217/Currencies.txt.

For information about ISO 4217 see https://en.wikipedia.org/wiki/ISO_4217.

[Category("Site"), Caption("Currency"), Description("The default currency used")]
[UIHint("CurrencyISO4217"), ReadOnly]
public string Currency { get; set; }

CurrencyISO4217 (Edit)

Allows selection of a currency name from a dropdown list. The model value is the 3 character currency code.

Model Type: string

The list of currencies is located at ./CoreComponents/Core/Addons/_Templates/CurrencyISO4217/Currencies.txt.

For information about ISO 4217 see https://en.wikipedia.org/wiki/ISO_4217.

AdditionalMetadata Attributes

NameTypeDefaultDescription
SiteCurrencybooltrueDefines whether the site's defined currency is shown in the list of currencies. If shown, it will always be shown as the first entry.
[Category("Site"), Caption("Currency"), Description("The default currency used")]
[UIHint("CurrencyISO4217"), StringLength(CurrencyISO4217.Currency.MaxId), Trim, Required]
public string Currency { get; set; }