mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-19 17:14:57 +00:00
* [ADF-2905] Updated JSDocs for content services * [ADF-2905] Updated JSDocs for content services * [ADF-2911] Improved error message handling in doc tools (#3267) * [ADF-2772] Sidenav Layout - UX review (#3264) * Add border-right in mat-sidenav * workaround for enum issue in js-api * fix the AoT buid error * fix AoT build error * fix export problem for AoT * [ADF-2905] Updated JSDocs for content services * [ADF-2905] Updated JSDocs for content services
51 lines
1.2 KiB
Markdown
51 lines
1.2 KiB
Markdown
---
|
|
Added: v2.3.0
|
|
Status: Active
|
|
Last reviewed: 2018-05-03
|
|
---
|
|
|
|
# Permission List Component
|
|
|
|
Shows node permissions as a table.
|
|
|
|

|
|
|
|
## Basic Usage
|
|
|
|
```html
|
|
<adf-permission-list [nodeId]="nodeId">
|
|
</adf-permission-list>
|
|
```
|
|
|
|
If permissions list is empty, `No permissions` text is displayed,
|
|
or custom template can be added:
|
|
|
|
```html
|
|
<adf-permission-list [nodeId]="nodeId">
|
|
<adf-no-permission-template>
|
|
Custom no permission template!
|
|
</adf-no-permission-template>
|
|
</adf-permission-list>
|
|
```
|
|
|
|
## Class members
|
|
|
|
### Properties
|
|
|
|
| Name | Type | Default value | Description |
|
|
| -- | -- | -- | -- |
|
|
| nodeId | `string` | "" | ID of the node whose permissions you want to show. |
|
|
|
|
### Events
|
|
|
|
| Name | Type | Description |
|
|
| -- | -- | -- |
|
|
| update | `EventEmitter<PermissionElement>` | Emitted when the permission is updated. |
|
|
|
|
## Details
|
|
|
|
This component uses a [Datatable component](../core/datatable.component.md) to show the
|
|
permissions retrieved from the [Node service](../core/node.service.md).
|
|
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.
|