Class: Avo::ClipboardComponent
- Inherits:
-
BaseComponent
- Object
- ViewComponent::Base
- BaseComponent
- Avo::ClipboardComponent
- Defined in:
- app/components/avo/clipboard_component.rb
Constant Summary
Constants included from Avo::Concerns::FindAssociationField
Avo::Concerns::FindAssociationField::ASSOCIATIONS
Instance Method Summary collapse
Methods inherited from BaseComponent
Methods included from ApplicationHelper
#a_button, #a_link, #body_classes, #button_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 Avo::Concerns::FindAssociationField
Instance Method Details
#before_render ⇒ Object
6 7 8 9 |
# File 'app/components/avo/clipboard_component.rb', line 6 def before_render @duration_value = 2500 @content_value = helpers.svg("tabler/outline/clipboard-check", class: "h-4 inline").tr('"', "'") end |
#render? ⇒ Boolean
11 12 13 |
# File 'app/components/avo/clipboard_component.rb', line 11 def render? @value.present? end |