Class: Avo::ClipboardComponent

Inherits:
BaseComponent
  • Object
show all
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

#has_with_trial

Methods included from Avo::Concerns::FindAssociationField

#find_association_field

Instance Method Details

#before_renderObject



6
7
8
9
# File 'app/components/avo/clipboard_component.rb', line 6

def before_render
  @duration_value = 2500
  @content_value = helpers.svg("heroicons/outline/clipboard-document-check", class: "h-4 inline").tr('"', "'")
end

#render?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'app/components/avo/clipboard_component.rb', line 11

def render?
  @value.present?
end