Skip to main content

Nebula FormattedText Component

FormattedText

FormattedText is a decorator component adding input and display mask capabilities on a Text widget. Formatting is based on a public formatter API. The component is provided with 5 formatter implementations :

  • DateTimeFormatter. Implements masks for Date values, supporting both date and time patterns (e.g. "dd/MM/yyyy HH:mm").
  • DateFormatter. Extends the DateTimeFormatter, restricting the input mask to the date part only (e.g. "dd/MM/yyyy").
  • TimeFormatter. Extends the DateTimeFormatter, restricting the input mask to the time part only (e.g. "hh:mm:ss a").
  • NumberFormatter. Implements masks for Number values (e.g. "#,##0.00").
  • MaskFormatter. Implements masks for formatted String values (e.g. phone or account number, as "(###)-####").

NOTE: The FormattedText is in an ALPHA state. The API is stable, but users should expect changes in future versions: add of new features and formatters, minor behavior changes.

Snippets

Update History (like release notes)


Back to the top