Rico Suter edited this page May 29, 2015 · 6 revisions

To show a modal dialog, simply call the showDialog() method of the Visto object:

import visto = require("libs/visto");
import package = module("module");

visto.showDialog(package, "MySampleDialog");

The package parameter is needed, so that the dialog is loaded from the current package. The framework automatically supports Bootstrap and jQuery UI dialogs.

Implement support for other frameworks

TODO: Show how to use another dialog framework than Bootstrap or jQuery UI.