With ag-grid and ng7, I created a custom tooltip component, binding it to column definition tooltipComponent, along with headertooltip, and headername. When I hover on the header, the console.log
from agInit gets called, however the template is not rendered
base on official ag-grid tooltip guide, there is a method called getGui
that could also render html. Tried that as well, nothing shown when hover on header.
<ag-grid-angular
#agGrid
[frameworkComponents]="frameworkComponents"
...
></ag-grid-angular>
headerName: 'Atheltes`
tooltipComponent: 'customTooltip',
headerTooltip: 'Helper text should show here'
this.frameworkComponents = { customTooltip: CustomTooltipComponent };
@Component({
selector: 'ffp-tooltip-component',
template: `<div>It should show helper text</div>`,
})
export class CustomTooltipComponent implements ITooltipAngularComp {
agInit(params: ITooltipParams) {
console.log('this console log works!!')
// console.log above gets called, however, no template is shown.
}
getGui(): any {
}
}
I expect when I hover on the header Atheletes
, I should see a tooltip text of Helper text should show here
.
tooltipShowDelay: 0,
ingridOptions
– Fyrd