class ActiveAdmin::Views::TabbedNavigation
Renders an ActiveAdmin::Menu
as a set of unordered list items.
This component takes cares of deciding which items should be displayed given the current context and renders them appropriately.
The entire component is rendered within one ul element.
Attributes
Public Instance Methods
build(menu, options = {})
click to toggle source
Build a new tabbed navigation component.
@param [ActiveAdmin::Menu] menu the Menu
to render @param [Hash] options the options as passed to the underlying ul element.
Calls superclass method
# File lib/active_admin/views/tabbed_navigation.rb, line 19 def build(menu, options = {}) @menu = menu super(default_options.merge(options)) build_menu end
tag_name()
click to toggle source
# File lib/active_admin/views/tabbed_navigation.rb, line 30 def tag_name 'ul' end
Private Instance Methods
default_options()
click to toggle source
# File lib/active_admin/views/tabbed_navigation.rb, line 61 def default_options { id: "tabs" } end