setFormat

sets a custom format for a cell and returns the name of the format

string setFormat(number rowId,number columnId,string format, [string page] );
rowId
numberthe row id columnId
numberthe column id format
stringconditions for formatting the cell content, separated by semi-colons pagestringoptional, the name of the sheet
stringthe name of the format

Example

$$("ssheet").setFormat(2, 2, "[>1000]> 0.0;[>100]Check 0,000.0#;[=0]Nope", "Sheet1");

Related samples

Details

Check the format details.

When a new column or row is added, new cells inherit the existing formats in the following way:

See also
  • API
  • Articles
  • 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.
    If you have not checked yet, be sure to visit site of our main product Webix web development library and page of javascript spreadsheet product.