Class: Avo::Items::PanelComponent
- Inherits:
-
ResourceComponent
- Object
- ResourceComponent
- Avo::Items::PanelComponent
- Includes:
- ApplicationHelper
- Defined in:
- app/components/avo/items/panel_component.rb
Instance Method Summary collapse
Methods included from ApplicationHelper
#a_button, #a_link, #button_classes, #card_classes, #chart_color, #decode_filter_params, #empty_state, #encode_filter_params, #frame_id, #get_model_class, #input_classes, #mount_path, #number_to_social, #possibly_rails_authentication?, #render_license_warning, #root_path_without_url, #svg, #white_panel_classes
Methods included from ResourcesHelper
#field_wrapper, #filter_wrapper, #index_field_wrapper, #item_selector_data_attributes, #resource_grid, #resource_show_path, #resource_table
Instance Method Details
#args ⇒ Object
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
# File 'app/components/avo/items/panel_component.rb', line 28 def args if @is_main_panel { name: title, description: @resource.description, display_breadcrumbs: , index: 0, data: {panel_id: "main"}, cover_photo: @resource.cover_photo, profile_photo: @resource.profile_photo } else {name: @item.name, description: @item.description, index: @index} end end |