🤖 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:
vatana7
2022-10-20 10:30:06 +07:00
committed by GitHub
parent 98e869043f
commit c6de4f58a5
2 changed files with 10 additions and 0 deletions

View File

@@ -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 {

View File

@@ -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');