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, #resource, #response, #user

Attributes included from Concerns::HasItems

#items_holder

Instance Method Summary collapse

Methods inherited from BaseAction

#action_name, #append_to_response, #authorized?, #close_modal, #current_user, decode_arguments, #download, encode_arguments, #error, #fields, form_data_attributes, #get_message, #handle_action, #inform, #keep_modal_open, link_arguments, #navigate_to_action, #redirect_to, #reload, #silent, #succeed, to_param, #visible_in_view, #warn

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(label: nil, view: nil, **kwargs) ⇒ Divider

Returns a new instance of Divider.



4
5
6
7
# File 'lib/avo/divider.rb', line 4

def initialize(label: nil, view: nil, **kwargs)
  @label = label
  @view = 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

#viewObject (readonly)

Returns the value of attribute view.



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

def view
  @view
end