Initqtip:function(Treeid) {///<summary> Initialize information layer </summary> varTreeobj = $.fn.ztree.getztreeobj ("Treedemo"); varnodes = Treeobj.transformtoarray (Treeobj.getnodes ());//Get all nodes for(vari = 0; i < nodes.length; i++) { varid = nodes[i].tid;//gets the HTML element ID of the node varlevel = Nodes[i].level;//Get node Hierarchy if(number (level) = = 0) { $("#" + ID). Children ("a"). Qtip ({content: {title: {text:
' Wafer Detail '}, Text: $ (' #divWaferDetail ')}, Position: {corner: { Target:' TopLeft ', tooltip:' Bottomleft '}}, Style: {wid Th:"600px", Height:"350px" } }); } Else if(number (level) = = 1) { $("#" + ID). Children ("a"). Qtip ({content: {title: {text:
' Rdlbump Detail '}, Text: $ (' #RDLBumpDetail ')}, Position: {corner: { Target:' TopLeft ', tooltip:' Bottomleft '}}, Style: {wid Th:"600px", Height:"350px" } }); } Else { $("#" + ID). Children ("a"). Qtip ({content: {title: {text:
' Assy Detail '}, Text: $ (' #AssyDetail ')}, Position: {corner: { Target:' TopLeft ', tooltip:' Bottomleft '}}, Style: {wid Th:"600px", Height:"350px" } }); } } }
Examples of use of Qtip