local
Adds a filter, to use the current I18n provider to localize the bound value.
local(...type: string[]): Binding<string>
Notes
- The provided type is passed directly to the I18n provider. Commonly used types include
date
(with an additionallong
orshort
argument), andcurrency
(with an optional currency symbol argument).
Parameters
- type — Argument(s) passed to I18nProvider.format()
Return value
A new binding, typed as a string
Example
// A label that shows a short last-modified date
ui.label(
bound("lastModified").local("date", "short")
)
Related
- class BindingA class that represents a property binding.