mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
Update README.md
This commit is contained in:
@@ -79,6 +79,10 @@ Also make sure you include these dependencies in your `index.html` file:
|
|||||||
|
|
||||||
```ts
|
```ts
|
||||||
import { Component } from '@angular/core';
|
import { Component } from '@angular/core';
|
||||||
|
import {
|
||||||
|
CONTEXT_MENU_DIRECTIVES,
|
||||||
|
CONTEXT_MENU_PROVIDERS
|
||||||
|
} from 'ng2-alfresco-core';
|
||||||
import {
|
import {
|
||||||
ALFRESCO_DATATABLE_DIRECTIVES,
|
ALFRESCO_DATATABLE_DIRECTIVES,
|
||||||
ObjectDataTableAdapter
|
ObjectDataTableAdapter
|
||||||
@@ -88,7 +92,8 @@ import {
|
|||||||
selector: 'my-view',
|
selector: 'my-view',
|
||||||
template: `<alfresco-datatable [data]="data">
|
template: `<alfresco-datatable [data]="data">
|
||||||
</alfresco-datatable>`,
|
</alfresco-datatable>`,
|
||||||
directives: [ALFRESCO_DATATABLE_DIRECTIVES]
|
directives: [ALFRESCO_DATATABLE_DIRECTIVES, CONTEXT_MENU_DIRECTIVES],
|
||||||
|
providers: [CONTEXT_MENU_PROVIDERS]
|
||||||
})
|
})
|
||||||
export class MyView {
|
export class MyView {
|
||||||
data: ObjectDataTableAdapter;
|
data: ObjectDataTableAdapter;
|
||||||
|
Reference in New Issue
Block a user