Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Lubos on May 05, 2009 07:26
open dhtmlx forum
Different cursor on dhtmlxTree

I'd like to know,
how to change cursor in dhtmlxtree. Currently there is a pointer cursor set, but we need to have default cursor.
I've tried to specify
.standartTreeRow {
    cursor: default;
    }
    .selectedTreeRow {
    cursor: default;
    }
    .standartTreeRow span {
    cursor: default;
    }
.selectedTreeRow span {
    cursor: default;
    }
in the HTML page with my tree, but it still doesn't work as the cursor is default only when it's over the icon in the tree..

The tree is created this way:
tree = layout.cells("a").attachTree();
tree.setImagePath(themeScriptSrcPath + "/../dhtmlx/imgs/");
tree.setIconPath(themeScriptSrcPath + "/../dhtmlx/imgs/");
tree.enableDragAndDrop(false);
tree.enableTreeLines(true);
tree.insertNewChild(0,-3,'TEXT',0,0,0,0,"TOP");
tree.insertNewChild(-3,10,'SUB_TEXT',0,0,0,0,"");

Thnx for any help


Answer posted by Alex (support) on May 05, 2009 07:40

You can try to redefine the cursor as follows:

tree = layout.cells("a").attachTree();
...
tree.style_pointer = "default";
...

Answer posted by Lubos on May 05, 2009 07:47
Thanks, it works!