Class: Pageflow::Admin::TabsView Private

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

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Since:

  • 12.2

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#optionsObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • 12.2



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

def options
  @options
end

#tabsObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • 12.2



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

def tabs
  @tabs
end

Instance Method Details

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

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • 12.2



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

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

  @options = options
  @tabs = filter_tabs(tabs)

  build_tab_list
  build_tab_containers
end