Renders a west-oriented Treant.js hierarchical tree from a parent-child-name dataset, with right-click context menus for node management.
LEFTTREE — set as ReportType in def_report.
def Render(self, Param1="", Param2="", Param3="") -> str:
The query must return rows with columns: ParentGuid (col 0), ChildGuid (col 1), ChildName (col 2), Rank (col 3), Package (col 4), Block (col 5). The root node has no parent. Each node exposes a right-click context menu that calls treemenu_rightclickmenu. Tree orientation is WEST with CENTER alignment and bounce animation.
setJS()Builds the full Treant initialisation script.
setJSElements()Generates the Treant node variable declarations and chart_config array from self.data_list.
setMenu()Attaches contextmenu event listeners to each node's DOM element.
setStyle()Returns inline CSS for the tree node styling.
Requires Treant.css, Treant.js, and raphael.js.