Creates a dialog over the content. Events are fired on $(document).
- Source:
SHDialogs.add({
content: $('.my-content')
});
Methods
(static) add(optionsopt) → {void}
Adds a dialog to the body.
- Source:
Parameters:
Name | Type | Attributes | Default | Description | ||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
<optional> |
{} | The options to pass on to the dialog view.
Properties
|
Returns:
- Type
- void
SHDialogs.add({
content: $('.my-content'),
title: 'My Content',
width: 'wide',
noContentPadding: true
});
(static) remove() → {void}
Removes a dialog from the body.
- Source:
Returns:
- Type
- void
SHDialogs.remove();