Class: UI::ItemActions
- Inherits:
-
Phlex::HTML
- Object
- Phlex::HTML
- UI::ItemActions
- Includes:
- ItemActionsBehavior
- Defined in:
- app/components/ui/item_actions.rb
Instance Method Summary collapse
-
#initialize(classes: "", **attributes) ⇒ ItemActions
constructor
A new instance of ItemActions.
- #view_template(&block) ⇒ Object
Methods included from ItemActionsBehavior
#item_actions_classes, #item_actions_html_attributes
Constructor Details
#initialize(classes: "", **attributes) ⇒ ItemActions
Returns a new instance of ItemActions.
6 7 8 9 |
# File 'app/components/ui/item_actions.rb', line 6 def initialize(classes: "", **attributes) @classes = classes @attributes = attributes end |
Instance Method Details
#view_template(&block) ⇒ Object
11 12 13 |
# File 'app/components/ui/item_actions.rb', line 11 def view_template(&block) div(**item_actions_html_attributes, &block) end |