Class: PhlexKit::CommandEmpty
- Inherits:
-
BaseComponent
- Object
- Phlex::HTML
- BaseComponent
- PhlexKit::CommandEmpty
- Defined in:
- app/components/phlex_kit/command/command_empty.rb
Overview
"No results" row — hidden by the controller until a filter matches nothing. See command.rb.
Instance Method Summary collapse
-
#initialize(**attrs) ⇒ CommandEmpty
constructor
A new instance of CommandEmpty.
- #view_template ⇒ Object
Methods inherited from BaseComponent
Constructor Details
#initialize(**attrs) ⇒ CommandEmpty
Returns a new instance of CommandEmpty.
5 6 7 |
# File 'app/components/phlex_kit/command/command_empty.rb', line 5 def initialize(**attrs) @attrs = attrs end |
Instance Method Details
#view_template ⇒ Object
9 10 11 12 13 14 15 |
# File 'app/components/phlex_kit/command/command_empty.rb', line 9 def view_template(&) div(**mix({ class: "pk-command-empty", role: "presentation", data: { phlex_kit__command_target: "empty" } }, @attrs), &) end |