Please tell me if you have the best way to write event handling.
pqgrid ver. 5.1.0
abc.ts
/// <reference path="../../types/pqgrid.d.ts" />
namespace aaa {
class PqgridAbc {
public grid: pq.gridT.instance;
constructor() {
this.grid = pq.grid("#gridMain", this.gridObj);
}
public gridObj: pq.gridT.options = {
height: "100%-10",
width: "100%-10",
:
create: (evt, ui) => {
// validation warn.
this.grid.widget().pqTooltip(); <- error.1
}
}
const pqAbc = new PqgridAbc;
}
error.1
error TS2551: Property 'pqTooltip' does not exist on type 'JQuery<HTMLElement>'. Did you mean 'tooltip'?