Class: UI::ContextMenuSeparator
- Inherits:
-
Phlex::HTML
- Object
- Phlex::HTML
- UI::ContextMenuSeparator
- Includes:
- ContextMenuSeparatorBehavior
- Defined in:
- app/components/ui/context_menu_separator.rb
Overview
Separator - Phlex implementation
A visual divider between menu items. Uses ContextMenuSeparatorBehavior concern for shared styling logic.
Instance Method Summary collapse
-
#initialize(classes: "", **attributes) ⇒ ContextMenuSeparator
constructor
A new instance of ContextMenuSeparator.
- #view_template ⇒ Object
Methods included from ContextMenuSeparatorBehavior
#context_menu_separator_classes, #context_menu_separator_html_attributes
Constructor Details
#initialize(classes: "", **attributes) ⇒ ContextMenuSeparator
Returns a new instance of ContextMenuSeparator.
15 16 17 18 |
# File 'app/components/ui/context_menu_separator.rb', line 15 def initialize(classes: "", **attributes) @classes = classes @attributes = attributes end |
Instance Method Details
#view_template ⇒ Object
20 21 22 |
# File 'app/components/ui/context_menu_separator.rb', line 20 def view_template div(**.merge(@attributes)) end |