@origamijs/zen-tooltip

| Prop | Type | Description | Optional | Default | |---|---|---|---|---| | position | reference TooltipPosition 1254 | | ✓ | | | renderComplete | reference Promise [object Object] | Returns a promise which resolves after the element next renders. The promise resolves to `true` if the element rendered and `false` if the element did not render. This is useful when users (e.g. tests) need to react to the rendered state of the element after a change is made. This can also be useful in event handlers if it is desireable to wait to send an event until after rendering. If possible implement the `_didRender` method to directly respond to rendering within the rendering lifecycle. | | |

Usage no npm install needed!

<script type="module">
  import origamijsZenTooltip from 'https://cdn.skypack.dev/@origamijs/zen-tooltip';
</script>

README

Tooltip

Properties

Prop Type Description Optional Default
position reference TooltipPosition 1254
renderComplete reference Promise [object Object] Returns a promise which resolves after the element next renders. The promise resolves to `true` if the element rendered and `false` if the element did not render. This is useful when users (e.g. tests) need to react to the rendered state of the element after a change is made. This can also be useful in event handlers if it is desireable to wait to send an event until after rendering. If possible implement the `_didRender` method to directly respond to rendering within the rendering lifecycle.