Updated: Please, find the following example:
$("#jqxToolBar").jqxToolBar({ width: "100%", height: 35, tools: 'button',
initTools: function (type, index, tool, menuToolIninitialization) {
if (type == "button") {
var icon = $("<div class='jqx-editor-toolbar-icon jqx-editor-toolbar-icon-" + theme + " buttonIcon'></div>");
}
switch (index) {
case 0:
tool.text("Delete");
break;
}
The ‘disableTool’ method will work correctly if the following line $("#jqxToolBar").jqxToolBar("disableTool", 1, true); is used out of ‘initTools’.