02.07.2020, 07:18
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:
Custom CSS:
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);
}