Posted 5 August 2021, 3:30 am EST
Hi team,
I want to display tooltip on each cell (both enabled and disabled cell).
And the value of tooltip should be the UI value which is displayed on the grid (if ALL is displayed on the cell then ALL should be displayed on the tooltip).
Also how can I display the tooltip below the cursor(default) and not on the top or bottom of the cell (adjust the tooltip position).
https://stackblitz.com/edit/angular-z8eskn?file=src/app/app.component.ts
I have used the below function to display tooltip:- (Refer 268)
init(grid){
//some initialization work
let tt = new wjcCore.Tooltip();
grid.formatItem.addHandler((s,e)=>{
if(e.panel.cellType == wjcGrid.CellType.Cell){
tt.hideDelay = 9999999;
tt.setTooltip(e.cell, `${e.row}:${e.col}`);
}
});
}
but since we are displaying different value on UI for a cell (eg ALL) compared to it’s actual value. So,
- How can we show the UI value on tooltip ?
- How to display Tooltip on disabled cell ?
- Adjust the position of tooltip below the cursor ?
Please help me with the solution.
Regards.