registerMathMethod

adds a custom function that will be used in formulas

void registerMathMethod(string name,function handler);

Parameters

namestringthe name of a new function, specified in uppercase
handlerfunctionthe handler function

Example

$$("ss1").registerMathMethod("NEW", function(value){
    // function's logic
});

Related samples

Details

The handler function can receive a set of parameters you need for your function. For example, you can pass one value (a cell reference) or an array of values (a range of cell values), etc.

You can use the new method as =NEW(H3:H5);

See also
Back to top
If you have not checked yet, be sure to visit site of our main product Webix ui component library and page of spreadsheet product.