SAP Builders Blog Posts
Learn from peers about their low-code journey and write your own blog posts to share your thoughts and experiences as you become an SAP Builder.
cancel
Showing results for 
Search instead for 
Did you mean: 
Dan_Wroblewski
Developer Advocate
Developer Advocate
1,351

See all 3 parts of the custom component series:

Both the tooltip and Fiori dialog are available for use now.

Someone asked in a community forum if there was a help feature where you could expose a little icon that would give help for a component or for your app. As far as I know, there isn't.

But I decided to make one myself.

I deployed it to the marketplace in EU10 – you should have access if your tenant is in EU10 (if you have a different landscape, I have provided the component in an exported project). So if you want to see it, click on Marketplace

dan_wroblewski_0-1701968909471.png

Search for component:

 

 

QJihBbRdBz8qLAOhexlMWg

 

 

dan_wroblewski_1-1701968972845.png

Click Install.

dan_wroblewski_2-1701969009535.png

The component will be added to the top of the Install tab of components.

dan_wroblewski_3-1701969070010.png

Now you can put it wherever you want a tooltip.

dan_wroblewski_4-1701969123271.png

What's nice about the tooltip:

  • The tooltip will show above all other components.
  • The tooltip and icon will not take up much space.
  • The tooltip will disappear if you click the icon again or after 5 seconds.

But you do have to configure a few things, but it will take less than a minute.

You must set the width of the component to Fit content.

dan_wroblewski_5-1701969245114.png

You must set the Z-index to something above the other components, like 10.

dan_wroblewski_6-1701969333077.png

If you put the component inside a container, you must set Clip overflowing content of that container to No.

dan_wroblewski_7-1701969382002.png

And finally, you must set the text you want to display. You can add unicode characters to add line breaks, like this text (you may have to use a formula so the slashes don't get escaped):

 

 

This is the text to explain what this button does.
\u000A\u000A
This is the second line.

 

 

dan_wroblewski_9-1701969528376.png

Now if you run the app. It appears like this:

dan_wroblewski_10-1701969712107.png

And if you click the icon it shows this:

dan_wroblewski_11-1701969847773.png

You can change the colors by opening the style editor (double-click the component on the canvas).

dan_wroblewski_0-1701970913531.png

Next time I'll show you how I built and published the component (or feel free to reverse engineer my component).

 

 

6 Comments