Dialog
The dialog is capable of displaying text and HTML, along with any number of buttons.
Basic example
Fit.Controls.Dialog.Confirm("Close window?", function(res)
{
if (res === true)
close();
});
Tip: Fit.Controls.Dialog.Alert("Hello world") can be used to simply display a message with an OK button.
Override Fit.Language.Translations.Ok and Fit.Language.Translations.Cancel to change the labels of the buttons, or create a dialog with custom buttons (see example below).
Dialog with iFrame
Since the component allows for HTML and custom buttons to be used, adding a dialog with an iFrame like shown below is fairly easy.