ember-cli-tooltipster icon indicating copy to clipboard operation
ember-cli-tooltipster copied to clipboard

Contextual Interactive Content

Open andycochran opened this issue 7 years ago • 2 comments

Is it possible to pass contextual interactive content to Tooltipster?

For example, might you pass the yield of a block-level component to the content option?  Something like this (note: this doesn't work)… 

// foo.hbs

{{#interactive-tooltip
  title='This is my trigger'
}}
  <h6>This is my tooltip content.</h6>
  <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
{{/interactive-tooltip}}
// interactive-tooltip.hbs

{{#tool-tipster
  content=yield
  interactive=true
  contentAsHTML=true
  triggerEvent='click'
}}
  {{title}}
{{/tool-tipster}}
 

andycochran avatar Jul 09 '18 16:07 andycochran

🤔 Thinking more about this…

It seems that {{tool-tipster}} would be more versatile if it could be passed a trigger property instead of a content property that would cause it to use the block content as the content.

/cc @allthesignals

andycochran avatar Aug 03 '18 16:08 andycochran

Hey @andycochran sorry for the late reply but I am not working with ember for a long time now and not sure what is possible, if this could be done with the current state of the plugin. If you have any idea you can take a look into it and maybe create a PR.

altrim avatar Aug 13 '18 13:08 altrim