class
Opal::UI::Tree
- Opal::UI::Tree
- Opal::UI::Element
- Reference
- Object
Overview
Renders a hierarchical tree with branch connectors.
Defined in:
opal/ui/components/tree.crConstructors
Instance Method Summary
- #add(node : TreeNode) : TreeNode
- #add(label : String, color : Color | Symbol | String = :white, icon : String | Nil = nil) : TreeNode
- #add(label : String, color : Color | Symbol | String = :white, icon : String | Nil = nil, &block : TreeNode -> Nil) : TreeNode
- #preferred_size(available_w : Int32, available_h : Int32) : Tuple(Int32, Int32)
- #render(buffer : Buffer, x : Int32, y : Int32, width : Int32, height : Int32) : Nil
- #root_nodes : Array(TreeNode)
- #title : String | Nil
Instance methods inherited from class Opal::UI::Element
preferred_size(available_w : Int32, available_h : Int32) : Tuple(Int32, Int32)
preferred_size,
render(buffer : Buffer, x : Int32, y : Int32, width : Int32, height : Int32) : Nil
render
Constructor Detail
Instance Method Detail
def add(label : String, color : Color | Symbol | String = :white, icon : String | Nil = nil) : TreeNode
#
def add(label : String, color : Color | Symbol | String = :white, icon : String | Nil = nil, &block : TreeNode -> Nil) : TreeNode
#