Class: Avo::Divider
- Inherits:
-
BaseAction
- Object
- BaseAction
- Avo::Divider
- Defined in:
- lib/avo/divider.rb
Instance Attribute Summary collapse
-
#label ⇒ Object
readonly
Returns the value of attribute label.
Attributes inherited from BaseAction
#appended_turbo_streams, #arguments, #icon, #record, #records_to_reload, #resource, #response, #user, #view
Attributes included from Concerns::HasItems
Instance Method Summary collapse
-
#initialize(**kwargs) ⇒ Divider
constructor
A new instance of Divider.
Methods inherited from BaseAction
#action_name, #append_to_response, #authorized?, #cancel_button_label, #close_modal, #confirm_button_label, #current_user, decode_arguments, #disabled?, #download, #enabled?, encode_arguments, #error, #fields, form_data_attributes, #get_message, #handle_action, #inform, #keep_modal_open, link_arguments, #navigate_to_action, #redirect_to, #reload, #reload_record, #silent, #succeed, to_param, #visible_in_view, #warn
Methods included from Concerns::Hydration
Methods included from Concerns::HasActionStimulusControllers
Methods included from Concerns::HasItems
#fields, #get_field, #get_field_definitions, #get_fields, #get_items, #get_preview_fields, #invalid_fields, #is_empty?, #items, #only_fields, #tab_groups, #visible_items
Constructor Details
#initialize(**kwargs) ⇒ Divider
Returns a new instance of Divider.
4 5 6 7 |
# File 'lib/avo/divider.rb', line 4 def initialize(**kwargs) @label = kwargs[:label] @view = kwargs[:view] end |
Instance Attribute Details
#label ⇒ Object (readonly)
Returns the value of attribute label.
2 3 4 |
# File 'lib/avo/divider.rb', line 2 def label @label end |