Constructor
new module:caplin/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:caplin/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()