Skip to content

Latest commit

 

History

History
43 lines (39 loc) · 776 Bytes

File metadata and controls

43 lines (39 loc) · 776 Bytes
title description date icon author buttons list filters
Modial
Modal API
2020-10-18 17:04:47 -0700
Tumble
type name href
1
Source
documents
type params
exists
{{item.customData.modial}}
// @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()