class Opal::UI::TreeNode

Overview

Node in a hierarchical tree view.

Defined in:

opal/ui/components/tree.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(label : String, color : Color | Symbol | String = :white, icon : String | Nil = nil) #

[View source]

Instance Method Detail

def add(child : TreeNode) : TreeNode #

[View source]
def add(label : String, color : Color | Symbol | String = :white, icon : String | Nil = nil) : TreeNode #

[View source]
def add(label : String, color : Color | Symbol | String = :white, icon : String | Nil = nil, &block : TreeNode -> Nil) : TreeNode #

[View source]
def children : Array(TreeNode) #

[View source]
def color : Color #

[View source]
def icon : String | Nil #

[View source]
def label : String #

[View source]