Documentation

setHeader

set header label and default params for new headers

void setHeader(any hdrStr,any splitSign,any styles);

Parameters

  • hdrStr
    any
    header string with delimiters
  • splitSign
    any
    string used as a split marker, optional. Default is "#cspan"
  • styles
    any
    array of header styles
  • Example

    //setting columns labels
       mygrid.setHeader("A,B,C");
       //setting columns labels and it's styles
       mygrid.setHeader("A,B,C",null,["text-align:right;","text-align:left;","text-align:center"]);

    Back to top