Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
149357 | Nov 22,2019 04:00 PM UTC | Dec 6,2019 04:14 AM UTC | Angular - EJ 2 | 3 |
![]() |
Tags: PivotView |
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);
}; |
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.