Added | Status | Last reviewed |
---|---|---|
v2.3.0 |
Active |
2018-05-03 |
Shows node permissions as a table.
<adf-permission-list [nodeId]="nodeId">
</adf-permission-list>
If permissions list is empty, No permissions
text is displayed,
or custom template can be added:
<adf-permission-list [nodeId]="nodeId">
<adf-no-permission-template>
Custom no permission template!
</adf-no-permission-template>
</adf-permission-list>
Name | Type | Default value | Description |
---|---|---|---|
nodeId | string |
"" | ID of the node whose permissions you want to show. |
Name | Type | Description |
---|---|---|
error | EventEmitter <any> |
|
update | EventEmitter <PermissionElement> |
Emitted when the permission is updated. |
This component uses a Datatable component to show the
permissions retrieved from the Node service.
For the locally set permissions a role dropdown will be shown to let the user select a new role.
When the user selects a new value, the permission role is automatically updated and the update
event is emitted.