Class: PhlexUI::Clipboard::Popover
- Defined in:
- lib/phlex_ui/clipboard/popover.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(type:, **attrs) ⇒ Popover
constructor
A new instance of Popover.
- #view_template(&block) ⇒ Object
Methods inherited from Base
Constructor Details
#initialize(type:, **attrs) ⇒ Popover
Returns a new instance of Popover.
5 6 7 8 |
# File 'lib/phlex_ui/clipboard/popover.rb', line 5 def initialize(type:, **attrs) @type = type super(**attrs) end |
Instance Method Details
#view_template(&block) ⇒ Object
10 11 12 13 14 |
# File 'lib/phlex_ui/clipboard/popover.rb', line 10 def view_template(&block) template_tag(data: {clipboard_target: clipboard_target}) do div(**attrs, &block) end end |