Documentation

setHeader

sets the header label and default params for new headers

void setHeader(string hdrStr,string splitSign,array styles);

Parameters

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

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

    Back to top