class

Tui::Tree::Node(T)

Inherits Reference / Object

Constructors

new(data : T, label : String, icon : Char | Nil = nil, icon_expanded : Char | Nil = nil)
Source

Instance methods

add(data : T, label : String, icon : Char | Nil = nil, icon_expanded : Char | Nil = nil) : Node(T)
Source
add_child(child : Node(T)) : Node(T)
Source
children
Source
children=(children : Array(Node(T)))
Source
collapse
Source
data
Source
data=(data : T)
Source
depth
Source
expand
Source
expanded
Source
expanded=(expanded : Bool)
Source
icon
Source
icon=(icon : Char | Nil)
Source
icon_expanded
Source
icon_expanded=(icon_expanded : Char | Nil)
Source
label
Source
label=(label : String)
Source
leaf?
Source
parent
Source
parent=(parent : Node(T) | Nil)
Source
toggle
Source