Class: BlockPyDialog

BlockPyDialog

new BlockPyDialog(main, tag)

A utility object for quickly and conveniently generating dialog boxes. Unfortunately, this doesn't dynamically create new boxes; it reuses the same one over and over again. It turns out dynamically generating new dialog boxes is a pain! So we can't stack them.
This:
Parameters:
Name Type Description
main Object The main BlockPy instance
tag HTMLElement The HTML object this is attached to.
Source:

Methods

show(title, body, onclose)

A simple externally available function for popping up a dialog message. This menu will be draggable by its title.
Parameters:
Name Type Description
title String The title of the message dialog. Can have HTML.
body String The body of the message dialog. Can have HTML.
onclose function A function to be run when the user closes the dialog.
Source: