setRangeStyle

sets a style for a range of cells

void setRangeStyle(string rangeStr,object style, [string page] );
rangeStrstringa range of cells (or several ranges) to apply a style to
styleobjectthe applied style
pagestringoptional, the name of the sheet

Example

// single range 
spreadsheet.setRangeStyle("C4:E4", style, "Sheet1");
 
// multiple ranges
spreadsheet.setRangeStyle("C3:E3;C5:E5;C7:E7", style, "Sheet1");

Details

The rangeStr parameter accepts multiple ranges with a semicolon as delimiter: "A1:C3;B4:D5".

See also
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 library product.