Class TreeView# Defined in File TreeView.h Nested Relationships# Nested Types# Struct TreeView::Node Inheritance Relationships# Base Type# public Karana::WebUI::Widget (Class Widget) Class Documentation# class TreeView : public Karana::WebUI::Widget# Widget displaying an interactable tree using hierarchical html. Public Types using NodeList = std::vector<Node># Alias for a list of nodes. Public Functions TreeView(Router &router, const NodeList &nodes, std::function<void(Karana::Core::id_t)> on_select = {})# TreeView constructor. Parameters: router – The connection router to use nodes – The initial list of nodes in the tree on_select – Called when a node is selected in the UI virtual ~TreeView()# TreeView destructor. void select(Karana::Core::id_t id)# Select the node with the given id. Note that calling this does not invoke the on_select callback passed into the constructor Parameters: id – The id to select struct Node# Data for a node in a TreeView. Public Members Karana::Core::id_t id# Id of an object to associate the node with. std::string label = "unnamed"# Display name of the node. std::optional<Karana::Core::id_t> parent = std::nullopt# Id of the parent node, if any.