title | description | date | icon | author | buttons | list | filters | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Modial |
Modal API |
2020-10-18 17:04:47 -0700 |
|
|
documents |
|
// @require https://github.com/tumble1999/modial/raw/master/modial.js
let modal = new Modial();
// or
modal.setContent("Body");
// or
modal.setContent("Header","Body","Footer");
// or
modal.setContent({
header:"Header",
body:"Body",
footer:"Footer"
});
// or you can get the nodes to do things like append children or something
modal.getHeaderNode()
modal.getBodyNode()
modal.getFooterNode()
modal.show()
modal.hide()