Class: UI::CommandList

Inherits:
Phlex::HTML
  • Object
show all
Includes:
CommandListBehavior
Defined in:
app/components/ui/command_list.rb

Instance Method Summary collapse

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_templateObject



11
12
13
# File 'app/components/ui/command_list.rb', line 11

def view_template(&)
  div(**command_list_html_attributes.deep_merge(@attributes), &)
end