class Voom::Presenters::DSL::Components::TabBar
Attributes
tabs[R]
Public Class Methods
new(**attribs_, &block)
click to toggle source
Calls superclass method
Voom::Presenters::DSL::Components::Base::new
# File lib/voom/presenters/dsl/components/tab_bar.rb, line 8 def initialize(**attribs_, &block) super(type: :tab_bar, **attribs_, &block) @tabs = [] expand! end
Public Instance Methods
tab(label, **attribs, &block)
click to toggle source
# File lib/voom/presenters/dsl/components/tab_bar.rb, line 14 def tab(label, **attribs, &block) @tabs << Tab.new(parent: self, label: label, **attribs, &block) end