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
- NumberColumn - Parent column type
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. Providefalseto render such values too.Has a corresponding runtime hideZeros property.
Properties
Properties are getters/setters or publicly accessible variables on this class-
Identifies an object as an instance of CurrencyColumn class, or subclass thereof.
-
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. Providefalseto render such values too.Has a corresponding hideZeros config.
-
Identifies an object as an instance of CurrencyColumn class, or subclass thereof.
type: currency