Module: Sidebars::Concerns::ContainerWithHtmlOptions
- Includes:
- LinkWithHtmlOptions
- Included in:
- Menu
- Defined in:
- lib/sidebars/concerns/container_with_html_options.rb
Instance Method Summary collapse
-
#container_html_options ⇒ Object
The attributes returned from this method will be applied to helper methods like ‘link_to` or the div containing the container.
-
#extra_container_html_options ⇒ Object
Classes will override mostly this method and not ‘container_html_options`.
- #link ⇒ Object
- #title ⇒ Object
Methods included from LinkWithHtmlOptions
Instance Method Details
#container_html_options ⇒ Object
The attributes returned from this method will be applied to helper methods like ‘link_to` or the div containing the container.
11 12 13 14 15 |
# File 'lib/sidebars/concerns/container_with_html_options.rb', line 11 def { aria: { label: title } }.merge() end |
#extra_container_html_options ⇒ Object
Classes will override mostly this method and not ‘container_html_options`.
19 20 21 |
# File 'lib/sidebars/concerns/container_with_html_options.rb', line 19 def {} end |
#link ⇒ Object
27 28 29 |
# File 'lib/sidebars/concerns/container_with_html_options.rb', line 27 def link raise NotImplementedError end |
#title ⇒ Object
23 24 25 |
# File 'lib/sidebars/concerns/container_with_html_options.rb', line 23 def title raise NotImplementedError end |