Class: Essence::ClipboardCopyComponent
- Inherits:
-
ApplicationComponent
- Object
- ViewComponent::Base
- ApplicationComponent
- Essence::ClipboardCopyComponent
- Defined in:
- app/components/essence/clipboard_copy_component.rb
Constant Summary
Constants included from FetchOrFallbackHelper
FetchOrFallbackHelper::InvalidValueError
Instance Attribute Summary collapse
-
#html_options ⇒ Object
readonly
Returns the value of attribute html_options.
-
#input_label ⇒ Object
readonly
Returns the value of attribute input_label.
-
#input_name ⇒ Object
readonly
Returns the value of attribute input_name.
-
#input_value ⇒ Object
readonly
Returns the value of attribute input_value.
-
#link_text ⇒ Object
readonly
Returns the value of attribute link_text.
Instance Method Summary collapse
-
#initialize(input_name:, input_label: nil, input_value: nil, link_text: nil, link_confirmation_text: nil, **html_options) ⇒ ClipboardCopyComponent
constructor
A new instance of ClipboardCopyComponent.
Methods inherited from ApplicationComponent
#assets_path, assets_path, images_directory
Methods included from Utils
Methods included from FetchOrFallbackHelper
#fetch_or_fallback, #fetch_or_fallback_boolean, #integer_or_fallback
Constructor Details
#initialize(input_name:, input_label: nil, input_value: nil, link_text: nil, link_confirmation_text: nil, **html_options) ⇒ ClipboardCopyComponent
Returns a new instance of ClipboardCopyComponent.
7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'app/components/essence/clipboard_copy_component.rb', line 7 def initialize(input_name:, input_label: nil, input_value: nil, link_text: nil, link_confirmation_text: nil, **) @input_name = input_name @input_label = input_label || false @input_value = input_value @link_text = link_text @link_confirmation_text = link_confirmation_text @html_options = end |
Instance Attribute Details
#html_options ⇒ Object (readonly)
Returns the value of attribute html_options.
5 6 7 |
# File 'app/components/essence/clipboard_copy_component.rb', line 5 def @html_options end |
#input_label ⇒ Object (readonly)
Returns the value of attribute input_label.
5 6 7 |
# File 'app/components/essence/clipboard_copy_component.rb', line 5 def input_label @input_label end |
#input_name ⇒ Object (readonly)
Returns the value of attribute input_name.
5 6 7 |
# File 'app/components/essence/clipboard_copy_component.rb', line 5 def input_name @input_name end |
#input_value ⇒ Object (readonly)
Returns the value of attribute input_value.
5 6 7 |
# File 'app/components/essence/clipboard_copy_component.rb', line 5 def input_value @input_value end |
#link_text ⇒ Object (readonly)
Returns the value of attribute link_text.
5 6 7 |
# File 'app/components/essence/clipboard_copy_component.rb', line 5 def link_text @link_text end |