isDisabled()
pro version only
This functionality requires PRO version of the DHTMLX Grid (or DHTMLX Suite) package.
returns the module's current state
isDisabled(): boolean;
Returns:
Returns true
if the module is disabled.
Example
// The example shows checking the module's state after disabling it
const grid = new dhx.Grid("grid_container", {
columns: [
{ id: "name", header: [{ text: "Name" }] },
{ id: "value", header: [{ text: "Value" }] },
],
data: [
{ id: "1", name: "Item 1", value: 10 },
],
history: true
});
grid.history.disable();
console.log(grid.history.isDisabled()); // -> true
grid.history.enable();
console.log(grid.history.isDisabled()); // -> false
Related article: Enabling/disabling History module
Change log:
added in v9.2