Class: PhlexKit::CommandList
- Inherits:
-
BaseComponent
- Object
- Phlex::HTML
- BaseComponent
- PhlexKit::CommandList
- Defined in:
- app/components/phlex_kit/command/command_list.rb
Overview
Container for CommandGroups, with dividers between them. See command.rb.
Instance Method Summary collapse
-
#initialize(**attrs) ⇒ CommandList
constructor
A new instance of CommandList.
- #view_template ⇒ Object
Methods inherited from BaseComponent
Constructor Details
#initialize(**attrs) ⇒ CommandList
Returns a new instance of CommandList.
4 5 6 |
# File 'app/components/phlex_kit/command/command_list.rb', line 4 def initialize(**attrs) @attrs = attrs end |
Instance Method Details
#view_template ⇒ Object
8 9 10 |
# File 'app/components/phlex_kit/command/command_list.rb', line 8 def view_template(&) div(**mix({ class: "pk-command-list" }, @attrs), &) end |