alfresco-ng2-components/docs/content-services/permission-list.component.md
Andy Stark 3ba72f00f8 [ADF-3551] Updates for doc review (#3784)
* [ADF-3551] Updated doc comments

* [ADF-3551] Updated doc comments

* [ADF-3551] Doc files updated with new doc comments
2018-09-13 12:59:57 +01:00

1.5 KiB

Added, Status, Last reviewed
Added Status Last reviewed
v2.3.0 Active 2018-09-13

Permission List Component

Shows node permissions as a table.

Permission List

Basic Usage

<adf-permission-list [nodeId]="nodeId">
</adf-permission-list>

Transclusions

When the list is empty, the contents will simply say "No permissions" by default, but you can also supply your own content:

<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
error EventEmitter<any> Emitted when an error occurs.
update EventEmitter<PermissionElement> Emitted when the permission is updated.

Details

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.