attachHeader

attaches an additional line to the header

void attachHeader(array values, [array style] );

Parameters

valuesarrayarray of header titles
stylearrayarray of styles, optional

Example

//plain usage
myGrid.attachHeader("A,B,C,D");
//alternative syntax
myGrid.attachHeader(["A","B","C","D"])
//colspans in header
myGrid.attachHeader("A,#cspan,C,#cspan");
//rowspans in header
myGrid.attachHeader("A,#rspan,C,#rspan");
//styles assigned
myGrid.attachHeader("A,B,C,D",["","color:red;","",""]);

Back to top