mirror of
https://github.com/chenasraf/DefinitelyTyped.git
synced 2026-05-18 01:49:01 +00:00
🤖 Merge PR #62796 add: ``menu event & popup event`` types [tabulator-tables] by @vatana7
* Added tabulator type * Update tabulator-tables-tests.ts * Update tabulator-tables-tests.ts
This commit is contained in:
4
types/tabulator-tables/index.d.ts
vendored
4
types/tabulator-tables/index.d.ts
vendored
@@ -2324,6 +2324,10 @@ export interface EventCallBackMethods {
|
||||
dataLoadError: (error: Error) => void;
|
||||
dataProcessing: () => void;
|
||||
dataProcessed: () => void;
|
||||
popupOpen: (cell: CellComponent) => void;
|
||||
popupClosed: (cell: CellComponent) => void;
|
||||
menuClosed: (cell: CellComponent) => void;
|
||||
menuOpened: (cell: CellComponent) => void;
|
||||
}
|
||||
|
||||
declare class Tabulator {
|
||||
|
||||
@@ -1189,4 +1189,10 @@ table = new Tabulator('#test', {
|
||||
|
||||
table.on('cellMouseDown', (e, cell) => {});
|
||||
|
||||
// Testing popup event and menu event
|
||||
table.on('popupClosed', component => {});
|
||||
table.on('popupOpen', component => {});
|
||||
table.on('menuOpened', component => {});
|
||||
table.on('menuClosed', component => {});
|
||||
|
||||
column.popup('test', 'bottom');
|
||||
|
||||
Reference in New Issue
Block a user