Example One

Launch an empty modal

BSDialog.Create('abc123', 'My Modal Box 123', null, 'xl');

Example Two

Launch a modal with text

BSDialog.Create('abc123', 'My Modal Box 123', 'Hello momo!', 'lg');

Example Three

Launch an empty modal then update its title, body, footer and size.

BSDialog.Create('abc123', 'My Modal Box 123', null, 'sm');
BSDialog.UpdateTitle('abc123', 'My Modal Box 567');
BSDialog.UpdateBody('abc123', 'Help, I\'m toast!');
BSDialog.UpdateFooter('abc123', '');
BSDialog.UpdateSize('abc123', 'lg');

Example Four

Launch a multiple modals

BSDialog.Create('abc123', 'My Modal Box 123', 'Help! I\'m toast.', 'sm');
BSDialog.Create('abc123456', 'My Modal Box 123.567', 'Help! I\'m a second toast.', 'md');

Example Six

Show a toast-style modal

BSDialog.ShowToast('abc123', 'My Modal Box 123', 'Help! I\'m toast.', 'sm');

Example Five

Launch a prompt modal

let result = await BSDialog.ShowPrompt({
    Title: "Prompt",
    Message: "This is a prompt",
    Size: "md",
    Buttons: [
        { Label: "Yes", Value: "Yes", Colour: "primary" },
        { Label: "No", Value: "No", Colour: "secondary" },
        { Label: "Cancel", Value: "Cancel", Colour: "secondary" }
    ]
});

alert(result);