DefinitelyTyped/types/tingle.js/tingle.js-tests.ts
2020-08-18 17:18:02 -07:00

25 lines
489 B
TypeScript

import { modal } from 'tingle.js';
let instance = new modal();
instance.open();
instance.checkOverflow();
instance.close();
instance.close();
instance.setContent("string content");
instance.setContent(new Node());
instance.setContent(new DocumentFragment());
instance = new modal({
onOpen() {
this.checkOverflow();
},
beforeClose() {
return this.isOverflow();
},
});
instance.addFooterBtn('text', undefined, e => e.x);
instance.setStickyFooter(false);