Class: Avo::UI::IconButtonComponent

Inherits:
BaseComponent
  • Object
show all
Defined in:
app/components/avo/u_i/icon_button_component.rb

Constant Summary

Constants included from Concerns::FindAssociationField

Concerns::FindAssociationField::ASSOCIATIONS

Instance Method Summary collapse

Methods inherited from BaseComponent

#component_name

Methods included from ApplicationHelper

#a_button, #a_link, #body_classes, #chart_color, #container_classes, #d, #decode_filter_params, #e, #editor_file_path, #editor_url, #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, #rtl?, #text_direction, #ui, #wrap_in_modal

Methods included from ResourcesHelper

#field_wrapper, #filter_wrapper, #index_field_wrapper, #item_selector_data_attributes, #record_path, #record_title, #resource_for_record, #resource_grid, #resource_show_path, #resource_table

Methods included from Concerns::FindAssociationField

#find_association_field

Instance Method Details

#button_classesObject



16
17
18
19
20
21
# File 'app/components/avo/u_i/icon_button_component.rb', line 16

def button_classes
  class_names(
    "inline-flex items-center justify-center rounded-md p-1 cursor-pointer",
    @classes
  )
end

#dataObject



10
11
12
13
14
# File 'app/components/avo/u_i/icon_button_component.rb', line 10

def data
  {
    action: @action
  }.merge(@data)
end