mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
25 lines
489 B
TypeScript
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);
|