Docs (4.0.0)
class Binding method

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 additional long or short argument), and currency (with an optional currency symbol argument).

Parameters

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