cgxp.plugins.Login

ptype
cgxp_login
class cgxp.plugins.Login(config)

Provides an action that opens a login form panel.

Example Use

Sample code showing how to add a Login plugin to a gxp.Viewer:

new gxp.Viewer({
    ...
    tools: [{
        ptype: 'cgxp_login',
        actionTarget: 'center.tbar',
        toggleGroup: 'maptools',
% if user:
        username: "${user.username}",
% endif
        loginURL: "${request.route_url('login', path='')}",
        logoutURL: "${request.route_url('logout', path='')}"
    }]
    ...
});

Config Options

Configuration properties.

actionConfig

Object Config object for the action created by this plugin.

loginURL

URL of the login service.

logoutURL

URL of the logout service.

toggleGroup

The group this toggle button is member of.

username

Username of currently logged in user.

Public Methods

Public methods.

Login.addActions()

Table Of Contents

Previous topic

cgxp.plugins.LocationChooser

Next topic

cgxp.plugins.MapOpacitySlider

This Page