mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 16:14:40 +00:00
mvc/bootgrid - show tooltip when grid td content doesn't fit and remove similar functionality from Reporting: Unbound DNS to avoid duplication.
This commit is contained in:
parent
eed630092c
commit
92f282b295
@ -632,7 +632,7 @@
|
||||
return row.resolve_time_ms + 'ms';
|
||||
},
|
||||
"domain": function (column, row) {
|
||||
return '<span class="domain-content" data-toggle="tooltip" title="' + row.domain + '">' + row.domain + '</span>';
|
||||
return row.domain;
|
||||
},
|
||||
"commands": function (column, row) {
|
||||
if (bl_enabled.enabled == 0) {
|
||||
|
||||
@ -543,6 +543,14 @@ $.fn.UIBootgrid = function (params) {
|
||||
$(this).tooltip();
|
||||
});
|
||||
|
||||
// tooltip when ellipsis is used (overflow on text elements without children)
|
||||
$(this).find("td").bind('mouseenter', function(){
|
||||
let $this = $(this);
|
||||
if (this.offsetWidth < this.scrollWidth && !$this.attr('title') && $this.children().length == 0){
|
||||
$this.attr('title', $this.text()).tooltip({container: 'body', trigger: 'hover'}).tooltip('show');
|
||||
}
|
||||
});
|
||||
|
||||
// hook all events
|
||||
const commands = this_grid.getCommands();
|
||||
Object.keys(commands).map(function (k) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user