$container.
nosDialog
([method[, options[, ...]]])¶Manages back-office’s popup. This is a function with sub-functions.
Arguments: |
|
---|
nosDialog.
open
(dialog)¶Opens a popup. This is a wrapper of Wijmo widget Dialog.
A popup can be created in three ways:
iframe
.<div>
from an AJAX request.Catch events dispatched by $.nosDispatchEvent()
.
Arguments: |
|
---|
// Popup containing the HTML result of the AJAX request on contentUrl
$(domContext).nosDialog('open', {
contentUrl: 'path/url',
ajaxData: {
foo: 'bar'
},
title: 'title of the popup',
height: 400,
width: 700
});
// Same as previous, without first parameter, open is the default sub-function
$(domContext).nosDialog({
contentUrl: 'path/url',
ajaxData: {
foo: 'bar'
},
title: 'title of the popup',
height: 400,
width: 700
});
// Popup containing an iframe width contentUrl href
$(domContext).nosDialog({
iframe: true
contentUrl: 'path/url',
title: 'title of the popup',
height: 400,
width: 700
});
// Popup containing <div> with the id 'id_de_div'
$('#id_de_div').nosDialog({
title: 'title of the popup',
height: 400,
width: 700
});