Class: Sidebars::Search::Panel

Inherits:
Panel
  • Object
show all
Defined in:
lib/sidebars/search/panel.rb

Instance Attribute Summary

Attributes inherited from Panel

#context, #hidden_menu, #scope_menu

Instance Method Summary collapse

Methods inherited from Panel

#add_menu, #configure_menus, #container, #initialize, #insert_menu_after, #insert_menu_before, #remove_menu, #render_raw_menus_partial, #render_raw_scope_menu_partial, #renderable_menus, #replace_menu, #set_hidden_menu, #set_scope_menu, #super_sidebar_menu_items

Methods included from Gitlab::Utils::Override

#extended, extensions, #included, #method_added, #override, #prepended, #queue_verification, verify!

Methods included from Concerns::PositionableList

#add_element, #insert_element_after, #insert_element_before, #remove_element, #replace_element

Constructor Details

This class inherits a constructor from Sidebars::Panel

Instance Method Details

#aria_labelObject



7
8
9
# File 'lib/sidebars/search/panel.rb', line 7

def aria_label
  _('Search results')
end

#render?Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/sidebars/search/panel.rb', line 15

def render?
  true
end

#super_sidebar_context_headerObject



20
21
22
# File 'lib/sidebars/search/panel.rb', line 20

def super_sidebar_context_header
  aria_label
end