mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-26 17:24:56 +00:00
Integrate providers configuration button inside demo
This commit is contained in:
parent
e8c363e520
commit
20cbf1737e
@ -30,6 +30,20 @@ import {
|
|||||||
selector: 'my-app',
|
selector: 'my-app',
|
||||||
template: `<label for="token"><b>Insert the ip of your Alfresco instance:</b></label><br>
|
template: `<label for="token"><b>Insert the ip of your Alfresco instance:</b></label><br>
|
||||||
<input id="token" type="text" size="48" (change)="updateHost()" [(ngModel)]="host"><br><br>
|
<input id="token" type="text" size="48" (change)="updateHost()" [(ngModel)]="host"><br><br>
|
||||||
|
<div style="border-radius: 8px; position: absolute; background-color: papayawhip; color: cadetblue; left: 10px; top: 120px; z-index: 1;">
|
||||||
|
<p style="width:120px;margin: 20px;">
|
||||||
|
<label for="switch1" class="mdl-switch mdl-js-switch mdl-js-ripple-effect">
|
||||||
|
<input type="checkbox" id="switch1" class="mdl-switch__input" checked (click)="toggleECM(ecm.checked)" #ecm>
|
||||||
|
<span class="mdl-switch__label">ECM</span>
|
||||||
|
</label>
|
||||||
|
</p>
|
||||||
|
<p style="width:120px;margin: 20px;">
|
||||||
|
<label for="switch2" class="mdl-switch mdl-js-switch mdl-js-ripple-effect">
|
||||||
|
<input type="checkbox" id="switch2" class="mdl-switch__input" (click)="toggleBPM(bpm.checked)" #bpm>
|
||||||
|
<span class="mdl-switch__label">BPM</span>
|
||||||
|
</label>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
{{ status }}
|
{{ status }}
|
||||||
<hr>
|
<hr>
|
||||||
|
|
||||||
@ -65,6 +79,22 @@ export class AppComponent {
|
|||||||
console.log('Error Login EventEmitt called with: ' + $event.value);
|
console.log('Error Login EventEmitt called with: ' + $event.value);
|
||||||
this.status = $event.value;
|
this.status = $event.value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
toggleECM(checked) {
|
||||||
|
if (checked) {
|
||||||
|
this.providers[0] = 'ECM';
|
||||||
|
} else {
|
||||||
|
this.providers[0] = '';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
toggleBPM(checked) {
|
||||||
|
if (checked) {
|
||||||
|
this.providers[1] = 'BPM';
|
||||||
|
} else {
|
||||||
|
this.providers[1] = '';
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bootstrap(AppComponent, [
|
bootstrap(AppComponent, [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user