mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
Basic doc
This commit is contained in:
@@ -80,7 +80,7 @@ Also make sure you include these dependencies in your .html page:
|
|||||||
|
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<alfresco-login></alfresco-login>
|
<alfresco-login providers=['ECM','BPM']></alfresco-login>
|
||||||
```
|
```
|
||||||
|
|
||||||
Example of an App that use Alfresco login component :
|
Example of an App that use Alfresco login component :
|
||||||
@@ -100,7 +100,12 @@ import {
|
|||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'my-app',
|
selector: 'my-app',
|
||||||
template: '<alfresco-login (onSuccess)="mySuccessMethod($event)" (onError)="myErrorMethod($event)"></alfresco-login>',
|
template: '
|
||||||
|
<alfresco-login
|
||||||
|
providers=['ECM']
|
||||||
|
(onSuccess)="mySuccessMethod($event)"
|
||||||
|
(onError)="myErrorMethod($event)">
|
||||||
|
</alfresco-login>',
|
||||||
directives: [AlfrescoLoginComponent]
|
directives: [AlfrescoLoginComponent]
|
||||||
})
|
})
|
||||||
export class AppComponent {
|
export class AppComponent {
|
||||||
@@ -133,8 +138,14 @@ bootstrap(AppComponent, [
|
|||||||
|
|
||||||
#### Options
|
#### Options
|
||||||
|
|
||||||
**method**: {string} optional) default POST. The method attribute specifies how to send form-data
|
**providers**: { string[] } optional) default ECM.
|
||||||
The form-data can be sent as URL variables (with method="get") or as HTTP post transaction (with method="post").<br />
|
Using the providers attribute, you can specify in which system
|
||||||
|
(ECM or BPM) you want to be logged in.
|
||||||
|
By selecting one of the options only the relative components will be
|
||||||
|
accesible. For instance if you activate the ECM login then only the
|
||||||
|
ECM component will be visible,same behaviour for BPM selection.
|
||||||
|
You can also specify ECM and BPM, in this case both system components
|
||||||
|
are accessible.<br />
|
||||||
|
|
||||||
## Build from sources
|
## Build from sources
|
||||||
Alternatively you can build component from sources with the following commands:
|
Alternatively you can build component from sources with the following commands:
|
||||||
|
|||||||
Reference in New Issue
Block a user