Class: PhlexKit::AttachmentAction
- Inherits:
-
BaseComponent
- Object
- Phlex::HTML
- BaseComponent
- PhlexKit::AttachmentAction
- Defined in:
- app/components/phlex_kit/attachment/attachment_action.rb
Overview
Small ghost icon button in an Attachment (remove/download). Give it an aria-label; block content is the icon (defaults to ×). See attachment.rb.
Instance Method Summary collapse
-
#initialize(**attrs) ⇒ AttachmentAction
constructor
A new instance of AttachmentAction.
- #view_template(&block) ⇒ Object
Methods inherited from BaseComponent
Constructor Details
#initialize(**attrs) ⇒ AttachmentAction
Returns a new instance of AttachmentAction.
5 6 7 |
# File 'app/components/phlex_kit/attachment/attachment_action.rb', line 5 def initialize(**attrs) @attrs = attrs end |