DefinitelyTyped/types/tingle.js/tingle.js-tests.ts
Nathan Shively-Sanders 5b119f4767 Round 2 of fixes
2018-12-20 15:23:06 -08:00

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