Class: Avo::Divider

Inherits:
BaseAction show all
Defined in:
lib/avo/divider.rb

Instance Attribute Summary collapse

Attributes inherited from BaseAction

#appended_turbo_streams, #arguments, #icon, #record, #records_to_reload, #resource, #response, #user, #view

Attributes included from Concerns::HasItems

#items_holder

Instance Method Summary collapse

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

#hydrate

Methods included from Concerns::HasActionStimulusControllers

#get_stimulus_controllers

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

#labelObject (readonly)

Returns the value of attribute label.



2
3
4
# File 'lib/avo/divider.rb', line 2

def label
  @label
end