Class: UI::CommandEmpty
- Inherits:
-
Phlex::HTML
- Object
- Phlex::HTML
- UI::CommandEmpty
- Includes:
- CommandEmptyBehavior
- Defined in:
- app/components/ui/command_empty.rb
Instance Method Summary collapse
-
#initialize(classes: "", **attributes) ⇒ CommandEmpty
constructor
A new instance of CommandEmpty.
- #view_template ⇒ Object
Methods included from CommandEmptyBehavior
#command_empty_classes, #command_empty_data_attributes, #command_empty_html_attributes
Constructor Details
#initialize(classes: "", **attributes) ⇒ CommandEmpty
Returns a new instance of CommandEmpty.
6 7 8 9 |
# File 'app/components/ui/command_empty.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_empty.rb', line 11 def view_template(&) div(**command_empty_html_attributes.deep_merge(@attributes), &) end |