nosAction

$container.nosAction(action[, data])

Executes an action

Arguments:

Actions list

nosTabs

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
        }
});

nosDialog

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
        }
});

confirmationDialog

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'
        }
});

nosAjax

nosAction.nosAjax
Action:nosAjax
Params:Settings of $container.nosAjax().
$(domContext).nosAction({
        action: 'nosAjax',
        params: {
                url: 'path/url',
                method: 'POST',
                data: {
                        id: '{{_id}}'
                )
        }
}, {
        _id: 5
});

window.open

nosAction.windowOpen

Open a new browser window.

Action:window.open
Url:URL of the new window.
$(domContext).nosAction({
        action: 'window.open',
        url: 'path/url'
});

document.location

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'
});

nosMediaVisualise

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
});

dialogPick

nosAction.dialogPick
Action:dialogPick
Event:Name of the event to trigger.
$(domContext).nosAction({
        action: 'dialogPick',
        'event' => 'event_name'
});
Read the Docs v: elche
Versions
latest
stable
elche
dubrovka
chiba.2
chiba.1
Downloads
pdf
htmlzip
epub
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.