mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
<adf-context-menu-holder> removed from adf document list (#7404)
<adf-context-menu-holder> seems to be deprecated. The proposed solution seems to work.
This commit is contained in:
@@ -656,16 +656,26 @@ you can also define your own actions. See the
|
|||||||
[Content Action component](content-action.component.md)
|
[Content Action component](content-action.component.md)
|
||||||
for more information and examples.
|
for more information and examples.
|
||||||
|
|
||||||
You can also use the [Context Menu directive](../../core/directives/context-menu.directive.md) from the
|
|
||||||
ADF Core library to show the
|
|
||||||
actions you have defined in a context menu:
|
|
||||||
|
|
||||||
```ts
|
```ts
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'my-view',
|
selector: 'my-view',
|
||||||
template: `
|
template: `
|
||||||
<adf-document-list [contextMenuActions]="true">...</adf-document-list>
|
<adf-document-list [contextMenuActions]="true">
|
||||||
<adf-context-menu-holder></context-menu-holder>
|
<content-actions>
|
||||||
|
<content-action
|
||||||
|
title="Copy"
|
||||||
|
permission="update"
|
||||||
|
[disableWithNoPermission]="true"
|
||||||
|
handler="copy">
|
||||||
|
</content-action>
|
||||||
|
<content-action
|
||||||
|
title="Delete"
|
||||||
|
permission="delete"
|
||||||
|
disableWithNoPermission="true"
|
||||||
|
handler="delete">
|
||||||
|
</content-action>
|
||||||
|
</content-actions>
|
||||||
|
</adf-document-list>
|
||||||
`
|
`
|
||||||
})
|
})
|
||||||
export class MyView {
|
export class MyView {
|
||||||
|
Reference in New Issue
Block a user