Class: Alchemy::Admin::AttachmentSelect
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- Alchemy::Admin::AttachmentSelect
- Defined in:
- app/components/alchemy/admin/attachment_select.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(attachment = nil, url: nil, placeholder: Alchemy.t("Please choose"), query_params: nil) ⇒ AttachmentSelect
constructor
A new instance of AttachmentSelect.
Constructor Details
#initialize(attachment = nil, url: nil, placeholder: Alchemy.t("Please choose"), query_params: nil) ⇒ AttachmentSelect
Returns a new instance of AttachmentSelect.
6 7 8 9 10 11 |
# File 'app/components/alchemy/admin/attachment_select.rb', line 6 def initialize( = nil, url: nil, placeholder: Alchemy.t("Please choose"), query_params: nil) @attachment = @url = url @placeholder = placeholder @query_params = query_params end |
Instance Method Details
#call ⇒ Object
13 14 15 |
# File 'app/components/alchemy/admin/attachment_select.rb', line 13 def call content_tag("alchemy-attachment-select", content, attributes) end |