Class: Anchor::CopyToClipboardComponent
- Defined in:
- app/components/anchor/copy_to_clipboard_component.rb
Constant Summary
Constants included from ViewHelper
Instance Attribute Summary collapse
-
#label ⇒ Object
readonly
Returns the value of attribute label.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value: nil, label: nil, **kwargs) ⇒ CopyToClipboardComponent
constructor
A new instance of CopyToClipboardComponent.
Methods inherited from Component
Methods included from ViewHelper
#anchor_form_with, #anchor_svg, #deep_blank?, #merge_options, #popover_trigger_attributes
Methods included from FetchOrFallbackHelper
Constructor Details
#initialize(value: nil, label: nil, **kwargs) ⇒ CopyToClipboardComponent
Returns a new instance of CopyToClipboardComponent.
5 6 7 8 9 10 11 12 13 |
# File 'app/components/anchor/copy_to_clipboard_component.rb', line 5 def initialize( value: nil, label: nil, **kwargs ) @label = label @value = value super(**kwargs) end |
Instance Attribute Details
#label ⇒ Object (readonly)
Returns the value of attribute label.
3 4 5 |
# File 'app/components/anchor/copy_to_clipboard_component.rb', line 3 def label @label end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
3 4 5 |
# File 'app/components/anchor/copy_to_clipboard_component.rb', line 3 def value @value end |