Class: Pageflow::Admin::TabsView
- Inherits:
-
ViewComponent
- Object
- Arbre::Component
- ViewComponent
- Pageflow::Admin::TabsView
- Defined in:
- app/views/components/pageflow/admin/tabs_view.rb
Overview
Instance Attribute Summary collapse
- #options ⇒ Object readonly
- #tabs ⇒ Object readonly
Instance Method Summary collapse
Instance Attribute Details
#options ⇒ Object (readonly)
6 7 8 |
# File 'app/views/components/pageflow/admin/tabs_view.rb', line 6 def @options end |
#tabs ⇒ Object (readonly)
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, = {}) super(class: 'admin_tabs_view') @options = @tabs = filter_tabs(tabs) build_tab_list build_tab_containers end |