class
Opal::UI::TreeNode
- Opal::UI::TreeNode
- Reference
- Object
Overview
Node in a hierarchical tree view.
Defined in:
opal/ui/components/tree.crConstructors
Instance Method Summary
- #add(child : 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, &) : TreeNode
- #children : Array(TreeNode)
- #color : Color
- #expanded=(expanded : Bool)
- #expanded? : Bool
- #icon : String | Nil
- #label : String
- #toggle_expand : Nil
Constructor Detail
def self.new(label : String, color : Color | Symbol | String = :white, icon : String | Nil = nil, expanded : Bool = true)
#
Instance Method Detail
def add(label : String, color : Color | Symbol | String = :white, icon : String | Nil = nil) : TreeNode
#