Class: Avo::Resources::Controls::SaveButton
- Inherits:
-
BaseControl
- Object
- BaseControl
- Avo::Resources::Controls::SaveButton
- Defined in:
- lib/avo/resources/controls/save_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) ⇒ SaveButton
constructor
A new instance of SaveButton.
Methods inherited from BaseControl
Constructor Details
#initialize(**args) ⇒ SaveButton
Returns a new instance of SaveButton.
5 6 7 8 9 10 11 12 |
# File 'lib/avo/resources/controls/save_button.rb', line 5 def initialize(**args) super(**args) @label = args[:label] || I18n.t( "#{args[:resource].translation_key}.save", default: I18n.t("avo.save") ).capitalize end |