alfresco-ng2-components/docs/content-services/inherited-button.directive.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

37 lines
981 B
Markdown

---
Added: v2.3.0
Status: Active
---
# Inherit Permission directive
Update the current node by adding/removing the inherited permissions.
## Basic Usage
```html
<button mat-raised-button
color="primary"
adf-inherit-permission [nodeId]="nodeId"
(updated)="onUpdatedPermissions($node)">PERMISSION</button>
```
## Class members
### Properties
| Name | Type | Default value | Description |
| ---- | ---- | ------------- | ----------- |
| nodeId | `string` | | nodeId where to add/remove inherited permissions |
### Events
| Name | Type | Description |
| ---- | ---- | ----------- |
| updated | `EventEmitter<MinimalNodeEntryEntity>` | Emitted when the node is updated. |
## Details
This directive switches on/off the inheritance on the permission based on what is set on the node entity.
So if the node has inherited permissions, this will remove them viceversa if the node does not have the inherited permission this will add them.