Skip to content

getHeaderContent

returns a set of helpers for header content manipulation

function getHeaderContent(
// the content id
id: id
): any

any an object with helpers

const mygrid = webix.grid({
columns:[
{ header:{ content:"masterCheckbox", contentId:"cm1" } }
]
});
mygrid.getHeaderContent("cm1").check();

Currently it works only with masterCheckbox.

Available API:

const control = mygrid.getHeaderContent("cm1");
//check master checkbox
control.check();
//uncheck master checkbox
control.uncheck();
//get master checkbox state
const state = control.isChecked();