alfresco-ng2-components/docs/content-services/permission-list.component.md
Andy Stark 2c0e7aa035 [ADF-2847] Added Class members headings and rebuilt prop/method tables for docs (#3240)
* [ADF-2847] Added class members heading to content services docs

* [ADF-2847] Updated all prop/method tables in content services
2018-04-26 14:54:25 +01:00

1.2 KiB

Added, Status, Last reviewed
Added Status Last reviewed
v2.3.0 Active 2018-03-23

Permission List Component

Shows node permissions as a table.

Permission List

Basic Usage

<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>

Class members

Properties

Name Type Default value Description
nodeId string ""

Events

Name Type Description
update EventEmitter<PermissionElement>

Details

This component uses a Datatable component to show the permissions retrieved from the Node service. For the locallyset permissions a role dropdown will be showed allowing the user to change it. When user select a new value, the permission role is automatically updated and the update event is thrown.