This commit is contained in:
Eugenio Romano
2016-09-05 19:51:48 +02:00
parent d79da08a02
commit ce51fe899b
2 changed files with 19 additions and 12 deletions
+17 -10
View File
@@ -86,7 +86,7 @@ In this component are present three different tags :
* alfresco-tag-list * alfresco-tag-list
* alfresco-tag-node-list * alfresco-tag-node-list
##### alfresco-tag-node-actions-list ## alfresco-tag-node-actions-list
```html ```html
<alfresco-tag-node-actions-list [nodeId]="nodeId"></alfresco-tag-node-actions-list> <alfresco-tag-node-actions-list [nodeId]="nodeId"></alfresco-tag-node-actions-list>
@@ -96,13 +96,11 @@ In this component are present three different tags :
import { Component, OnInit, Input } from '@angular/core'; import { Component, OnInit, Input } from '@angular/core';
import { bootstrap } from '@angular/platform-browser-dynamic'; import { bootstrap } from '@angular/platform-browser-dynamic';
import { HTTP_PROVIDERS } from '@angular/http'; import { HTTP_PROVIDERS } from '@angular/http';
import { import {
ALFRESCO_CORE_PROVIDERS, ALFRESCO_CORE_PROVIDERS,
AlfrescoSettingsService, AlfrescoSettingsService,
AlfrescoAuthenticationService AlfrescoAuthenticationService
} from 'ng2-alfresco-core'; } from 'ng2-alfresco-core';
import { TAGCOMPONENT, TAGSERVICES } from 'ng2-alfresco-tag'; import { TAGCOMPONENT, TAGSERVICES } from 'ng2-alfresco-tag';
@Component({ @Component({
@@ -112,7 +110,7 @@ import { TAGCOMPONENT, TAGSERVICES } from 'ng2-alfresco-tag';
<alfresco-tag-node-actions-list [nodeId]="nodeId"></alfresco-tag-node-actions-list> <alfresco-tag-node-actions-list [nodeId]="nodeId"></alfresco-tag-node-actions-list>
</div> </div>
`, `,
directives: [TAGCOMPONENT, CONTEXT_MENU_DIRECTIVES], directives: [TAGCOMPONENT],
providers: [TAGSERVICES] providers: [TAGSERVICES]
}) })
class TagDemo implements OnInit { class TagDemo implements OnInit {
@@ -161,10 +159,15 @@ bootstrap(TagDemo, [
]); ]);
``` ```
### Options
Attribute | Options | Default | Description | Mandatory
--- | --- | --- | --- | ---
`nodeId` | *string* | | The identifier of a node.|
![Custom columns](docs/assets/tag3.png) ![Custom columns](docs/assets/tag3.png)
##### alfresco-tag-node-list ## alfresco-tag-node-list
```html ```html
<alfresco-tag-node-list [nodeId]="nodeId"></alfresco-tag-node-list> <alfresco-tag-node-list [nodeId]="nodeId"></alfresco-tag-node-list>
@@ -174,7 +177,6 @@ bootstrap(TagDemo, [
import { Component, OnInit, Input } from '@angular/core'; import { Component, OnInit, Input } from '@angular/core';
import { bootstrap } from '@angular/platform-browser-dynamic'; import { bootstrap } from '@angular/platform-browser-dynamic';
import { HTTP_PROVIDERS } from '@angular/http'; import { HTTP_PROVIDERS } from '@angular/http';
import { import {
ALFRESCO_CORE_PROVIDERS, ALFRESCO_CORE_PROVIDERS,
AlfrescoSettingsService, AlfrescoSettingsService,
@@ -190,7 +192,7 @@ import { TAGCOMPONENT, TAGSERVICES } from 'ng2-alfresco-tag';
<alfresco-tag-node-list [nodeId]="nodeId"></alfresco-tag-node-list> <alfresco-tag-node-list [nodeId]="nodeId"></alfresco-tag-node-list>
</div> </div>
`, `,
directives: [TAGCOMPONENT, CONTEXT_MENU_DIRECTIVES], directives: [TAGCOMPONENT],
providers: [TAGSERVICES] providers: [TAGSERVICES]
}) })
class TagDemo implements OnInit { class TagDemo implements OnInit {
@@ -239,9 +241,15 @@ bootstrap(TagDemo, [
]); ]);
``` ```
### Options
Attribute | Options | Default | Description | Mandatory
--- | --- | --- | --- | ---
`nodeId` | *string* | | The identifier of a node.|
![Custom columns](docs/assets/tag1.png) ![Custom columns](docs/assets/tag1.png)
##### alfresco-tag-list ## alfresco-tag-list
```html ```html
<alfresco-tag-list></alfresco-tag-list> <alfresco-tag-list></alfresco-tag-list>
@@ -251,7 +259,6 @@ bootstrap(TagDemo, [
import { Component, OnInit, Input } from '@angular/core'; import { Component, OnInit, Input } from '@angular/core';
import { bootstrap } from '@angular/platform-browser-dynamic'; import { bootstrap } from '@angular/platform-browser-dynamic';
import { HTTP_PROVIDERS } from '@angular/http'; import { HTTP_PROVIDERS } from '@angular/http';
import { import {
ALFRESCO_CORE_PROVIDERS, ALFRESCO_CORE_PROVIDERS,
AlfrescoSettingsService, AlfrescoSettingsService,
@@ -267,7 +274,7 @@ import { TAGCOMPONENT, TAGSERVICES } from 'ng2-alfresco-tag';
<alfresco-tag-list></alfresco-tag-list> <alfresco-tag-list></alfresco-tag-list>
</div> </div>
`, `,
directives: [TAGCOMPONENT, CONTEXT_MENU_DIRECTIVES], directives: [TAGCOMPONENT],
providers: [TAGSERVICES] providers: [TAGSERVICES]
}) })
class TagDemo implements OnInit { class TagDemo implements OnInit {
@@ -52,7 +52,7 @@ import { TAGCOMPONENT, TAGSERVICES } from 'ng2-alfresco-tag';
</div> </div>
</div> </div>
`, `,
directives: [TAGCOMPONENT, CONTEXT_MENU_DIRECTIVES], directives: [TAGCOMPONENT],
providers: [TAGSERVICES] providers: [TAGSERVICES]
}) })
class TagDemo implements OnInit { class TagDemo implements OnInit {