Skip to content

Adds text property to tooltips and popovers

Compare
Choose a tag to compare
@sir-dunxalot sir-dunxalot released this 11 Dec 00:25
· 562 commits to master since this release
  • #116 Text property

This release adds the ability to use tooltips and popovers in inline form by passing a text property with the content of the tooltip/popover instead of using a block template.

Instead of:

{{#my-component}}
  Hover for more info

  {{#tooltip-on-component}}
    Here is the info in a tooltip!
  {{/tooltip-on-component}}
{{/my-component}}

You can now write:

{{#my-component}}
  Hover for more info

  {{tooltip-on-component text='Here is more info in a tooltip!'}}
{{/my-component}}

Documentation is here.