How to customize a tooltip based on attributes of an entity?

0
Hi to you! When I'm moving the cursor over a text in a list view, e.g. "August", it automatically shows me the text "August" at the moment. Provided, that my entity is the following, and I've got a page which displays all the months: (Please note that the entity of the page parameter is "OrganisationalUnit" with a nested data grid displaying all the months through xpath, based on the Planning-entity which I attached above), how can I create a microflow that displays the "Comment"-attributes (that I added before on a seperate page) of each month as a tooltip? So that the "JanuaryComment" Attribute is displayed when hovering the mouse over "January" on that page? I've already installed the bootstrap tooltip widget, but I am not sure how to retrieve the correct attributes and return them as a string within the microflow. Thanks a lot for your help! Laura
asked
3 answers
1

Hey Laura,

try using the Bootstrap Tooltip widget for this:
https://appstore.home.mendix.com/link/app/1939/

It's easy to configure and offers a range of possibilities.

answered
1

Hi Laura,

do you mean when you hover over X you would like to show Y?

like a tooltip?

there are lots of ways to do this.

The easiest would be to use some nice CSS and I think position absolute.

 

---------------

.tooltip{

display:none;}
 

.august:hover tooltip{

display: block;}

answered
0

Hi Laura,

I think with your current setup you would be adding a tool tip to an entire column on your list. From your question I think you want to add a tool tip to each cell of the list. One way to accomplish that is to use a listview with the tool tips inside of it. 

For this example I used a table inside the listview with the class "table-spaceless" so it has the look of a datagrid, and for the header I used classes "table-header" and "table-spaceless". Then I added the tooltip widget inside the list view. Now for my datasource microflow for the tooltip widget, my parameter can be the same entity type as the list view, and now I can show a tooltip specific to each row of the list. 

For your case, if you want to show a tooltip for each month, you would need multiple tooltip widgets inside the list view. 

Hope this helps!

answered