mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
21 lines
371 B
TypeScript
21 lines
371 B
TypeScript
import { modal } from 'tingle.js';
|
|
|
|
let instance = new modal();
|
|
instance.open();
|
|
instance.checkOverflow();
|
|
instance.close();
|
|
instance.close();
|
|
|
|
instance = new modal({
|
|
onOpen() {
|
|
this.checkOverflow();
|
|
},
|
|
beforeClose() {
|
|
return this.isOverflow();
|
|
},
|
|
});
|
|
|
|
instance.addFooterBtn('text', undefined, e => e.x);
|
|
|
|
instance.setStickyFooter(false);
|