Opal::UI::Tabs
Inherits Opal::UI::Control < Opal::UI::InputHookable < Opal::UI::Element < Opal::UI::Themable < Reference < Object
Tabbed navigation header component for multi-view interfaces.
Constructors
new(items : Array(TabItem) = [] of TabItem, active_index : Int32 = 0, active_fg : Color | Symbol | String | Nil = nil, active_bg : Color | Symbol | String | Nil = nil, inactive_fg : Color | Symbol | String | Nil = nil, inactive_bg : Color | Symbol | String | Nil = nil, spacing : Int32 = 2, pill_style : Bool = false, on_change : Proc(Int32, TabItem, Nil) | Nil = nil)
Sourcenew(labels : Array(String), active_index : Int32 = 0, active_fg : Color | Symbol | String | Nil = nil, active_bg : Color | Symbol | String | Nil = nil, inactive_fg : Color | Symbol | String | Nil = nil, inactive_bg : Color | Symbol | String | Nil = nil, spacing : Int32 = 2, pill_style : Bool = false) : Tabs
SourceInstance methods
active_bg
Sourceactive_bg=(active_bg : Color | Nil)
Sourceactive_fg
Sourceactive_fg=(active_fg : Color | Nil)
Sourceactive_index
Sourceactive_tab
SourceDefault key event handler. Override in subclasses if not using @default_input_proc.
Default mouse event handler. Override in subclasses if not using @default_input_proc.
inactive_bg
Sourceinactive_bg=(inactive_bg : Color | Nil)
Sourceinactive_fg
Sourceinactive_fg=(inactive_fg : Color | Nil)
Sourceitems
Sourcenext_tab
Sourceon_change
Sourcepill_style?
Sourceprev_tab
Sourcespacing
Source