|
onNext() {
var a = document.querySelectorAll("li");
for(var i=0; i < a.length-1;i++) {
debugger;
if(a[i].classList.contains("e-node-focus"))
{
// Focus the next node of TreeView node.
a[i].classList.remove("e-node-focus", "e-hover");
a[i+1].classList.add("e-node-focus", "e-hover");
i =0;
break;
}
}
}
onPrevious() {
var a = document.querySelectorAll("li");
for(var i=1; i <= a.length-1;i++) {
if(a[i].classList.contains("e-node-focus"))
{
// Focus the previous node of TreeView node.
a[i].classList.remove("e-node-focus", "e-hover");
a[i-1].classList.add("e-node-focus", "e-hover");
i =0;
break;
}
}
} |
|
onNext() {
var a = document.querySelectorAll("li");
for(var i=0; i < a.length-1;i++) {
this.MoveSelection(i);
if(a[i].getAttribute(["data-uid"]) == this.treeview.selectedNodes )
{
// Select the next node of TreeView node.
this.treeview.selectedNodes = [a[i+1].getAttribute(["data-uid"])];
i =0;
break;
}
}
}
onPrevious() {
var a = document.querySelectorAll("li");
for(var i=1; i <= a.length-1;i++) {
if(a[i].getAttribute(["data-uid"]) == this.treeview.selectedNodes )
{
// Select the previous node of TreeView node.
this.treeview.selectedNodes = [a[i-1].getAttribute(["data-uid"])];
i =0;
break;
}
} |
|
onNext(args) {
// Get the Active node.
var active_node = document.querySelector(".e-active");
// get the active node level.
var active_node_level = active_node.getAttribute(["aria-level"]);
// Fetch all the node in the particular level.
var Level_nodes = document.querySelectorAll(".e-level-" + active_node_level );
for(var i=0;i<Level_nodes.length-1;i++ ) {
if(Level_nodes[i].classList.contains("e-node-focus")) {
Level_nodes[i].classList.remove("e-node-focus", "e-hover");
Level_nodes[i+1].classList.add("e-node-focus", "e-hover");
i =0;
break;
}
}
}
onPrevious() {
// Get the Active node.
var active_node = document.querySelector(".e-active");
// get the active node level.
var active_node_level = active_node.getAttribute(["aria-level"]);
// Fetch all the node in the particular level.
var Level_nodes = document.querySelectorAll(".e-level-" + active_node_level);
for(var i=1;i<Level_nodes.length;i++ ) {
if(Level_nodes[i].classList.contains("e-node-focus")) {
Level_nodes[i].classList.remove("e-node-focus", "e-hover");
Level_nodes[i-1].classList.add("e-node-focus", "e-hover");
i =0;
break;
}
}
}
|
|
onNext(args) {
var active_node = document.querySelector(".e-active");
var active_node_level = active_node.getAttribute("aria-level");
var Level_nodes = document.querySelectorAll(".e-level-" + active_node_level );
for(var i=0;i<Level_nodes.length-1;i++ ) {
if((Level_nodes[i].getAttribute("data-uid") == active_node.getAttribute("data-uid"))) {
this.treeview.selectedNodes = [Level_nodes[i+1].getAttribute("data-uid")];
}
}
} |