<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:
Maxvanvugt
2021-12-07 11:59:36 +01:00
committed by GitHub
parent 63f4bb1836
commit f9c2bf6092

View File

@@ -656,16 +656,26 @@ you can also define your own actions. See the
[Content Action component](content-action.component.md)
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
@Component({
selector: 'my-view',
template: `
<adf-document-list [contextMenuActions]="true">...</adf-document-list>
<adf-context-menu-holder></context-menu-holder>
<adf-document-list [contextMenuActions]="true">
<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 {