v7.3.0

CurrencyColumn

A column for showing/editing money values.

Example:

new Grid({
    columns : [
        {
            type     : 'currency',
            text     : 'Good Price in EUR',
            currency : 'EUR',
            field    : 'price'
        }
    ]
})

Useful configs

Config Description
currency ISO 4217 currency code (e.g. 'USD', 'EUR')
hideZeros Hide zero values in cells

See also

No results

Configs

Configs are options you supply in a configuration object when creating an instance of this class
  • The currency to use for rendering values. Possible values are the ISO 4217 currency codes, such as "USD" for the US dollar (default).

    Has a corresponding runtime currency property.

  • When true (default) then zero values (like $0.00) are not rendered. Provide false to render such values too.

    Has a corresponding runtime hideZeros property.

Properties

Properties are getters/setters or publicly accessible variables on this class
  • The currency to use for rendering values. Possible values are the ISO 4217 currency codes, such as "USD" for the US dollar (default).

    Has a corresponding currency config.

  • When true (default) then zero values (like $0.00) are not rendered. Provide false to render such values too.

    Has a corresponding hideZeros config.

  • isCurrencyColumn : Booleantrue
    READONLY
    ADVANCED
    Identifies an object as an instance of CurrencyColumn class, or subclass thereof.
type: currency

Source path

Grid/column/CurrencyColumn.js

Contents