Class: UI::CommandList
- Inherits:
-
Phlex::HTML
- Object
- Phlex::HTML
- UI::CommandList
- Includes:
- CommandListBehavior
- Defined in:
- app/components/ui/command_list.rb
Instance Method Summary collapse
-
#initialize(classes: "", **attributes) ⇒ CommandList
constructor
A new instance of CommandList.
- #view_template ⇒ Object
Methods included from CommandListBehavior
#command_list_classes, #command_list_data_attributes, #command_list_html_attributes
Constructor Details
#initialize(classes: "", **attributes) ⇒ CommandList
Returns a new instance of CommandList.
6 7 8 9 |
# File 'app/components/ui/command_list.rb', line 6 def initialize(classes: "", **attributes) @classes = classes @attributes = attributes end |
Instance Method Details
#view_template ⇒ Object
11 12 13 |
# File 'app/components/ui/command_list.rb', line 11 def view_template(&) div(**command_list_html_attributes.deep_merge(@attributes), &) end |