Class: ActiveAdmin::Views::TabsRenderer
- Defined in:
- lib/active_admin/views/tabs_renderer.rb
Overview
Renders out a horizontal list of tabs.
Constant Summary
Constants included from Arbre::HTML
Arbre::HTML::AUTO_BUILD_ELEMENTS, Arbre::HTML::HTML5_ELEMENTS
Instance Attribute Summary
Attributes inherited from Renderer
Instance Method Summary collapse
-
#to_html(menu, options = {}) ⇒ Object
Pass in an ActiveAdmin::Menu and it will display the first level of navigation as a horizontal list of tabs.
Methods inherited from Renderer
#haml, #initialize, #method_missing, #to_s
Methods included from Arbre::HTML
#current_dom_context, #helpers, #method_missing
Methods included from ActiveAdmin::ViewHelpers::RendererHelper
Constructor Details
This class inherits a constructor from ActiveAdmin::Renderer
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class ActiveAdmin::Renderer
Instance Method Details
#to_html(menu, options = {}) ⇒ Object
Pass in an ActiveAdmin::Menu and it will display the first level of navigation as a horizontal list of tabs
9 10 11 12 |
# File 'lib/active_admin/views/tabs_renderer.rb', line 9 def to_html(, = {}) @options = .merge() () end |