Caplin Trader 5.1.0

Class: module:ct-workbench/ui/WorkbenchPermissionEditor

module:ct-workbench/ui/WorkbenchPermissionEditor()

new module:ct-workbench/ui/WorkbenchPermissionEditor()

A WorkbenchPermissionEditor allows manipulation of permissions in the fake permission service. A toggle button will be created for each permission which an object is listening to. This means that, if you have set a listener on the module:ct-services/testing/PermissionServiceStub for certain action, a toggle button will appear for it.

The toggle buttons allow the changing of a permission from permitted to denied and vice versa.

To use this class, add it to a module:br-workbench/ui/Workbench object e.g.

var oPermissionEditor = new caplin.workbench.ui.WorkbenchPermissionEditor();
workbench.addToLeftWing(oPermissionEditor, "Permissions");
Implements:

Methods

getElement()

Implements:
See: