Initial commit

Co-Authored-By: kotte <14197736+mrtamagotchi@users.noreply.github.com>
Co-Authored-By: mikaeltellhed <2311083+mikaeltellhed@users.noreply.github.com>
Co-Authored-By: Tore Knudsen <18231882+torekndsn@users.noreply.github.com>
Co-Authored-By: Michael Cartner <32543275+michaelcartner@users.noreply.github.com>
This commit is contained in:
Eric Tuvesson
2023-09-05 12:08:55 +02:00
commit 53f0d6320e
2704 changed files with 76354 additions and 0 deletions

View File

@@ -0,0 +1,65 @@
---
title: Simple Tooltips Module
hide_title: true
---
# Simple Tooltips Module
[![GitHub](https://img.shields.io/static/v1?style=plastic&logo=github&label=GitHub&message=Source%20Code)](https://github.com/noodlapp/modules/tree/main/modules/simple-tooltips)
[Demo](https://simple-tooltips-module.sandbox.noodl.app/)
This module allows you to add simple tooltips to your Noodl App, they are designed to only show text and simple HTML.
<div className="ndl-image-with-background l">
![](/library/modules/simple-tooltips/preview.png)
</div>
Included in this module are 2 new core nodes.
The visual node **Tooltip** and a logic node **Show Tooltip**.
### Getting started
After importing this module you will see 2 new nodes in the node picker called **Tooltip** and **Show Tooltip** in external libraries category.
We can start by placing the **Tooltip** node into our visual tree, and a button inside.
<div className="ndl-image-with-background l">
![](/library/modules/simple-tooltips/tooltip-setup-1.png)
</div>
After that we will do the most important part, setting the content inside the tooltip. This can be done via the Property Panel when selecting the **Tooltip** node.
<div className="ndl-image-with-background l">
![](/library/modules/simple-tooltips/property-panel-1.png)
</div>
Now when you hover the mouse on top of the button you will see the tooltip.
<div className="ndl-image-with-background l">
![](/library/modules/simple-tooltips/tooltip-setup-2.png)
</div>
But the tooltip is not in the center of the button, that is because the tooltip is taking 100% width. In most cases, the content inside is also 100% width. But if you want it to be to the content size, you can place a group above it which is content size.
<div className="ndl-image-with-background l">
![](/library/modules/simple-tooltips/tooltip-setup-3.png)
</div>
And now you have a tooltip!
### Tooltip and Show Tooltip differences
These nodes share the same inputs the only differences between them are:
- The logic node needs to have a `Node Reference` passed in so it knows where to be attached.
- The visual node has a 100% width and content size height, so it might change the layout a little.