Class: Avo::Resources::Controls::AttachButton
- Inherits:
-
BaseControl
- Object
- BaseControl
- Avo::Resources::Controls::AttachButton
- Defined in:
- lib/avo/resources/controls/attach_button.rb
Instance Attribute Summary
Attributes inherited from BaseControl
#as_index_control, #color, #confirmation_message, #icon, #icon_class, #label, #size, #style, #title
Instance Method Summary collapse
-
#initialize(**args) ⇒ AttachButton
constructor
A new instance of AttachButton.
Methods inherited from BaseControl
Constructor Details
#initialize(**args) ⇒ AttachButton
Returns a new instance of AttachButton.
5 6 7 8 9 10 11 |
# File 'lib/avo/resources/controls/attach_button.rb', line 5 def initialize(**args) super(**args) if args[:item].present? @label = I18n.t("avo.attach_item", item: args[:item]) if label.nil? end end |