class Voom::Presenters::DSL::Components::TabBar::Tab
Attributes
components[RW]
icon[RW]
label[RW]
selected[RW]
stacked[RW]
Public Class Methods
new(**attribs_, &block)
click to toggle source
Calls superclass method
Voom::Presenters::DSL::Components::EventBase::new
# File lib/voom/presenters/dsl/components/tab_bar.rb, line 23 def initialize(**attribs_, &block) super(type: :tab, **attribs_, &block) @label = attribs.delete(:label){nil} @icon = attribs.delete(:icon) {nil} @stacked = attribs.delete(:stacked) {false} @selected = attribs.delete(:selected) {false} @components = [] expand! end