$container.
nosAction
(action[, data])¶Executes an action
Arguments: |
|
---|
nosAction.
nosTabs
¶Action: | nosTabs |
---|---|
Method: | Any sub-function name of $container.nosTabs() . |
Tab: | First parameter passed to sub-function of $container.nosTabs() . |
Dialog: | Second parameter passed to sub-function of $container.nosTabs() . |
$(domContext).nosAction({
action: 'nosTabs',
method: 'add',
tab: {
url: 'path/url',
label: 'A title',
iconUrl: 'url/of/icon.png'
},
dialog: {
width: 800,
height: 400
}
});
nosAction.
nosDialog
¶Action: | nosDialog |
---|---|
Dialog: | Second parameter passed to nosDialog.open() . |
$(domContext).nosAction({
action: 'nosDialog',
dialog: {
ajax: true,
contentUrl: 'path/url/,
title: 'A title',
width: 500,
height: 200
}
});
nosAction.
confirmationDialog
¶A special form of nosAction.nosDialog
for confirmation.
Action: | confirmationDialog |
---|---|
Dialog: | Second parameter passed to nosDialog.open() . |
$(domContext).nosAction({
action: 'confirmationDialog',
dialog: {
contentUrl: 'path/url/,
title: 'A title'
}
});
nosAction.
nosAjax
¶Action: | nosAjax |
---|---|
Params: | Settings of $container.nosAjax() . |
$(domContext).nosAction({
action: 'nosAjax',
params: {
url: 'path/url',
method: 'POST',
data: {
id: '{{_id}}'
)
}
}, {
_id: 5
});
nosAction.
windowOpen
¶Open a new browser window.
Action: | window.open |
---|---|
Url: | URL of the new window. |
$(domContext).nosAction({
action: 'window.open',
url: 'path/url'
});
nosAction.
documentLocation
¶Redirects the browser window to a new URL.
Action: | document.location |
---|---|
Url: | The new URL. |
$(domContext).nosAction({
action: 'document.location',
url: 'path/url'
});
nosAction.
nosMediaVisualise
¶This action has no parameters. It only depends on the data passed with action. See $.nosMediaVisualise()
.
Action: | nosMediaVisualise |
---|
$(domContext).nosAction({
action: 'nosMediaVisualise'
}, {
path: 'url/of/media/',
image: true
});
nosAction.
dialogPick
¶Action: | dialogPick |
---|---|
Event: | Name of the event to trigger. |
$(domContext).nosAction({
action: 'dialogPick',
'event' => 'event_name'
});