format

a common formatting function for the values in all columns

function format;

Example

webix.ui({
    view: "pivot",
    format: function(value,valueObj){/* value formatting logic */}
});

Details

The format function takes the following parameters:

  • value (number,string) - a raw value from data
  • valueObj (object) - the related value object

and returns a formatted value as a number or string.

Note that you can redefine the common format for the column with the specified value in the structure.values array.

Back to top
Join Our Forum
We've retired comments here. Visit our forum for faster technical support, connect with other developers, and share your feedback there.