Class: Arara::MenuDividerComponent
- Inherits:
-
ActionView::Component::Base
- Object
- ActionView::Component::Base
- Arara::MenuDividerComponent
- Includes:
- BaseComponent
- Defined in:
- app/components/arara/menu_divider_component.rb
Instance Method Summary collapse
- #default_html_class ⇒ Object
- #html_options ⇒ Object
-
#initialize(**kw) ⇒ MenuDividerComponent
constructor
A new instance of MenuDividerComponent.
Methods included from BaseComponent
#default_data_controller, #default_html_tag, #html_class, #html_content, #html_data, #html_tag, included
Constructor Details
#initialize(**kw) ⇒ MenuDividerComponent
Returns a new instance of MenuDividerComponent.
5 6 7 |
# File 'app/components/arara/menu_divider_component.rb', line 5 def initialize(**kw) super(tag: "hr", **kw) end |
Instance Method Details
#default_html_class ⇒ Object
9 10 11 |
# File 'app/components/arara/menu_divider_component.rb', line 9 def default_html_class "mdc-list-divider" end |
#html_options ⇒ Object
13 14 15 16 17 |
# File 'app/components/arara/menu_divider_component.rb', line 13 def opts = super opts[:role] = "separator" opts end |