Example 2 - Custom Formatters

Demonstrates:

  • width, minWidth, maxWidth, resizable, cssClass column attributes
  • custom column formatters
  • an extended formatter returning an object { text, removeClasses, addClasses, toolTip } rather than a string, allowing adding and removing css classes from the cell. You can also optionally use toolTip to fill the "title" attribute

View Source: