Jump to content

How to show label tootip at runtime?


newsanti

Recommended Posts

Hello,

1. CustomCSS:

.tooltip .tooltiptext {
  visibility: hidden;
  width: 120px;
  background-color: black;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;
  position: absolute;
  z-index: 1;
  top: 150%;
  left: 50%;
  margin-left: -60px;
}

.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent black transparent;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
}

2. UniLabel.Caption = <div class="tooltip">Hover over me<span class="tooltiptext">Tooltip text</span></div>

3. UniLabel.TextConversion = txtHTML

  • Like 1
Link to comment
Share on other sites

7 hours ago, Sherzod said:

Hello,

1. CustomCSS:

.tooltip .tooltiptext {
  visibility: hidden;
  width: 120px;
  background-color: black;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;
  position: absolute;
  z-index: 1;
  top: 150%;
  left: 50%;
  margin-left: -60px;
}

.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent black transparent;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
}

2. UniLabel.Caption = <div class="tooltip">Hover over me<span class="tooltiptext">Tooltip text</span></div>

3. UniLabel.TextConversion = txtHTML

image.png.a58e685db4b9667879db867fc2f56857.png

Work Perfect! Thanks.

  • Thanks 1
Link to comment
Share on other sites

10 hours ago, Sherzod said:

Hello,

1. CustomCSS:

.tooltip .tooltiptext {
  visibility: hidden;
  width: 120px;
  background-color: black;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;
  position: absolute;
  z-index: 1;
  top: 150%;
  left: 50%;
  margin-left: -60px;
}

.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent black transparent;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
}

2. UniLabel.Caption = <div class="tooltip">Hover over me<span class="tooltiptext">Tooltip text</span></div>

3. UniLabel.TextConversion = txtHTML

image.png.12c7d29ad90d985226f133d11bab57a7.png

if Label.caption is FontAwesome, tooltip don't show.

Link to comment
Share on other sites

57 minutes ago, Sherzod said:

Well, yes, tooltip will not be shown here, since you are not specifying classes.

The usual hint will be shown here.

I try with specifying classes when is fontAwesome label, Hint also show as usual hint not tooltip shown.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...