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.
-
#view ⇒ Object
readonly
Returns the value of attribute view.
Attributes inherited from BaseAction
#appended_turbo_streams, #arguments, #icon, #record, #resource, #response, #user
Attributes included from Concerns::HasItems
Instance Method Summary collapse
-
#initialize(label: nil, view: nil, **kwargs) ⇒ Divider
constructor
A new instance of Divider.
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
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
#label ⇒ Object (readonly)
Returns the value of attribute label.
2 3 4 |
# File 'lib/avo/divider.rb', line 2 def label @label end |
#view ⇒ Object (readonly)
Returns the value of attribute view.
2 3 4 |
# File 'lib/avo/divider.rb', line 2 def view @view end |