-
Notifications
You must be signed in to change notification settings - Fork 0
/
resource-select-demo.component.html
46 lines (39 loc) · 1.65 KB
/
resource-select-demo.component.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<h2>Resource Select</h2>
<!-- <h3>Datamanager</h3>
<ec-resource-select relation="dataManager" [api]="sdk?.datamanager" [(ngModel)]="multi"
[config]="{methods:['put','get']}">
</ec-resource-select>
<span *ngIf="multi?.length">{{multi?.length}} items selected</span>
<ec-resource-select relation="dataManager" [api]="sdk?.datamanager" [solo]="true" [(ngModel)]="solo">
</ec-resource-select>
<span *ngIf="solo">selected: {{solo}}</span>
<ec-notifications class="toast"></ec-notifications>
<h3>Without buttons</h3>
<ec-resource-select [config]="{disableListPop:true,disableCreatePop:true}" relation="dataManager"
[api]="sdk?.datamanager" [solo]="true"></ec-resource-select>
<h3>Accounts</h3>
<ec-resource-select relation="dmAccount" [api]="datamanager" *ngIf="datamanager"></ec-resource-select>
<h3>Roles</h3>
<ec-resource-select relation="role" [api]="datamanager" *ngIf="datamanager"></ec-resource-select>
<h3>With config</h3>
<ec-resource-select relation="model" [api]="datamanager" *ngIf="datamanager"
[config]="{disableCreatePop:true,disableRemove:true}">
</ec-resource-select> -->
<!-- <h3>Asset Tags</h3>
<ec-resource-select relation="tags" [api]="sdk.api"></ec-resource-select> -->
<h3>Tag Select</h3>
<ec-tag-select></ec-tag-select>
<h3>Asset Select</h3>
<ec-resource-select
relation="asset"
[api]="datamanager"
*ngIf="datamanager"
[config]="assetSelectConfig"
></ec-resource-select>
<h3>Entry Actionbar</h3>
<ec-entry-actionbar [(ngModel)]="selectedEntries"></ec-entry-actionbar>
{{ selectedEntries | json}}
<!-- <h3>Resource Actionbar</h3>
<ec-resource-actionbar></ec-resource-actionbar> -->
<h3>API Actionbar</h3>
<ec-api-actionbar></ec-api-actionbar>