Class: Avo::Resources::Controls::BackButton
- Inherits:
-
BaseControl
- Object
- BaseControl
- Avo::Resources::Controls::BackButton
- Defined in:
- lib/avo/resources/controls/back_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) ⇒ BackButton
constructor
A new instance of BackButton.
Methods inherited from BaseControl
Constructor Details
#initialize(**args) ⇒ BackButton
Returns a new instance of BackButton.
5 6 7 8 9 |
# File 'lib/avo/resources/controls/back_button.rb', line 5 def initialize(**args) super(**args) @label = args[:label] || I18n.t("avo.go_back") end |