w2utils.formatters

An object with formatting functions.
Object
This object provides formatters for all widgets (especially in the grid). You can extend formatters with your custom formatters: Below is the list of formatters that are already implemented:
  • number
  • float
  • int
  • money
  • currency
  • percent
  • size
  • date
  • datetime
  • time
  • timestamp
  • gmt
  • age
  • toggle
You can use them in grid when you define columns in the following way: Note that you can pass params after pipe (|).

User Comments

comments powered by Disqus