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