load(args: any): void {
let tooltip: Tooltip = new Tooltip({
target: 'th.e-columnsheader, td.e-rowsheader',
enableRtl: this.pivotGridObj.enableRtl,
beforeOpen: function (args) {
args.element.classList.add('e-pivottooltipwrap');
},
beforeRender: function (args) {
tooltip.content = '';
if (args.target.classList.contains('e-rowsheader') || args.target.classList.contains('e-columnsheader')) {
tooltip.content = '<div class="e-pivottooltip e-pivottooltip-wrap"><p>' + args.target.innerText + '</p></div>';
}
else {
args.cancel = true;
}
}
});
tooltip.appendTo(this.pivotGridObj.element);
};
|
load(args: any): void {
let tooltip: Tooltip = new Tooltip({
target: 'th.e-columnsheader, td.e-rowsheader',
enableRtl: this.pivotGridObj.enableRtl,
beforeOpen: function (args) {
args.element.classList.add('e-pivottooltipwrap');
},
beforeRender: function (args) {
tooltip.content = '';
if (args.target.classList.contains('e-rowsheader') || args.target.classList.contains('e-columnsheader')) {
tooltip.content = '<div class="e-pivottooltip e-pivottooltip-wrap"><p>' + args.target.innerText + '</p></div>';
@*you can customize the tooltip content here.*@
}
else {
args.cancel = true;
}
}
});
tooltip.appendTo(this.pivotGridObj.element);
}; |