This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Tooltip
#25
Custom name cannot be used but you can use object name like this. All elements that require a tooltip must have additional class set to tooltip
Custom JavaScript:
Code:
$(function(){
  $('.tooltip').each(function(_, el) {
    var addr = $(el).data('object');
    if (addr) {
      var obj = grp.find(addr);
      if (obj && obj.name) {
        $(el).attr('data-name', obj.name);
      }
    }
  });
});

Custom CSS:
Code:
.usermode .tooltip:before {
  display: none;
  position: absolute;
  top: -30px;
  height: 20px;
  line-height: 20px;
  left: 0;
  background-color: #eee;
  padding: 2px 6px;
  border-radius: 3px;
}
.usermode .tooltip:hover:before {
  display: block;
  content: attr(data-name);
}
Reply


Messages In This Thread
Tooltip - by cekca - 07.02.2017, 09:27
RE: Tooltip - by Thomas - 07.02.2017, 11:42
RE: Tooltip - by cekca - 13.02.2017, 15:16
RE: Tooltip - by buuuudzik - 13.02.2017, 22:28
RE: Tooltip - by Erwin van der Zwart - 13.02.2017, 23:34
RE: Tooltip - by Frank68 - 30.06.2020, 06:20
RE: Tooltip - by Erwin van der Zwart - 30.06.2020, 06:26
RE: Tooltip - by Frank68 - 30.06.2020, 11:48
RE: Tooltip - by admin - 14.02.2017, 07:45
RE: Tooltip - by Mirco - 13.11.2019, 09:02
RE: Tooltip - by Daniel - 13.11.2019, 09:05
RE: Tooltip - by Mirco - 13.11.2019, 09:12
RE: Tooltip - by Daniel - 13.11.2019, 09:14
RE: Tooltip - by Mirco - 13.11.2019, 09:17
RE: Tooltip - by Daniel - 13.11.2019, 09:19
RE: Tooltip - by Mirco - 13.11.2019, 09:26
RE: Tooltip - by Daniel - 13.11.2019, 09:38
RE: Tooltip - by Mirco - 13.11.2019, 09:49
RE: Tooltip - by Mirco - 14.11.2019, 08:14
RE: Tooltip - by Mirco - 14.11.2019, 14:03
RE: Tooltip - by admin - 14.11.2019, 14:09
RE: Tooltip - by admin - 30.06.2020, 11:49
RE: Tooltip - by Frank68 - 01.07.2020, 06:52
RE: Tooltip - by Frank68 - 02.07.2020, 06:51
RE: Tooltip - by admin - 02.07.2020, 07:18
RE: Tooltip - by Frank68 - 02.07.2020, 14:40
RE: Tooltip - by admin - 02.07.2020, 14:41
RE: Tooltip - by cekca - 11.01.2021, 16:07
RE: Tooltip - by admin - 12.01.2021, 07:32
RE: Tooltip - by JoWo - 18.04.2023, 13:34
RE: Tooltip - by admin - 19.04.2023, 08:21
RE: Tooltip - by JoWo - 19.04.2023, 17:56
RE: Tooltip - by admin - 20.04.2023, 13:11
RE: Tooltip - by fleeceable - 30.07.2023, 11:21
RE: Tooltip - by Novodk - 30.07.2023, 14:04
RE: Tooltip - by fleeceable - 30.07.2023, 20:49
RE: Tooltip - by Novodk - 31.07.2023, 08:45

Forum Jump: