mirror of
https://github.com/noodlapp/noodl-docs.git
synced 2026-01-12 15:22:53 +01:00
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:
65
library/modules/simple-tooltips/README.md
Normal file
65
library/modules/simple-tooltips/README.md
Normal file
@@ -0,0 +1,65 @@
|
||||
---
|
||||
title: Simple Tooltips Module
|
||||
hide_title: true
|
||||
---
|
||||
|
||||
# Simple Tooltips Module
|
||||
|
||||
[](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">
|
||||
|
||||

|
||||
|
||||
</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">
|
||||
|
||||

|
||||
|
||||
</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">
|
||||
|
||||

|
||||
|
||||
</div>
|
||||
|
||||
Now when you hover the mouse on top of the button you will see the tooltip.
|
||||
|
||||
<div className="ndl-image-with-background l">
|
||||
|
||||

|
||||
|
||||
</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">
|
||||
|
||||

|
||||
|
||||
</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.
|
||||
Reference in New Issue
Block a user