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.ShowToast('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.ShowToast('abc123', 'My Modal Box 123', 'Help! I\'m toast.', 'sm');
BSDialog.ShowToast('abc123456', 'My Modal Box 123.567', 'Help! I\'m a second toast.', 'md');