Class: PhlexKit::CommandList

Inherits:
BaseComponent show all
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

Methods inherited from BaseComponent

#on

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_templateObject



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