Class: Pageflow::Admin::TabsView

Inherits:
ViewComponent
  • Object
show all
Defined in:
app/views/components/pageflow/admin/tabs_view.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from ViewComponent

builder_method

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options


6
7
8
# File 'app/views/components/pageflow/admin/tabs_view.rb', line 6

def options
  @options
end

#tabsObject (readonly)

Returns the value of attribute tabs


6
7
8
# File 'app/views/components/pageflow/admin/tabs_view.rb', line 6

def tabs
  @tabs
end

Instance Method Details

#build(tabs, options = {}) ⇒ Object


8
9
10
11
12
13
14
15
16
# File 'app/views/components/pageflow/admin/tabs_view.rb', line 8

def build(tabs, options = {})
  super(class: 'admin_tabs_view')

  @tabs = tabs
  @options = options

  build_tab_list
  build_tab_containers
end