-
Notifications
You must be signed in to change notification settings - Fork 2k
Custom Formatter
Jens Doose edited this page Jun 15, 2017
·
2 revisions
A custom formatter is a function of the form function(row, cell, value, columnDef, dataContext) and returns a formatted version of the data in each cell of this column. For example, setting formatter to function(r, c, v, cd, dc) { return “Hello!”; } would overwrite every value in the column with “Hello!” See defaultFormatter in slick.grid.js for an example formatter.
Please note: the default formatter takes care of escaping HTML special characters. You probably want to do so on your own.
Resources
- API Reference
- Grid
- Grid Options
- Column Options
- Grid Events
- DataView
- Examples
- Providing data to the grid
- Plugins & Third-party packages
Learning
Tests
Contact/Support