Class: Pageflow::Admin::TabsView

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

Overview

Since:

  • 12.2

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#optionsObject (readonly)

Since:

  • 12.2



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

def options
  @options
end

#tabsObject (readonly)

Since:

  • 12.2



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

Since:

  • 12.2



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')

  @options = options
  @tabs = filter_tabs(tabs)

  build_tab_list
  build_tab_containers
end