mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-08-07 17:48:54 +00:00
Basic input validation (dynamic table)
This commit is contained in:
@@ -51,49 +51,12 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div *ngIf="editMode" class="mdl-shadow--2dp">
|
||||
<div class="mdl-grid" *ngFor="let column of content.columns">
|
||||
<div class="mdl-cell mdl-cell--6-col" [ngSwitch]="column.type">
|
||||
<div *ngSwitchCase="'Dropdown'">
|
||||
<alf-dropdown-editor
|
||||
[table]="content"
|
||||
[row]="editRow"
|
||||
[column]="column">
|
||||
</alf-dropdown-editor>
|
||||
</div>
|
||||
<div *ngSwitchCase="'Date'">
|
||||
<alf-date-editor
|
||||
[table]="content"
|
||||
[row]="editRow"
|
||||
[column]="column">
|
||||
</alf-date-editor>
|
||||
</div>
|
||||
<row-editor *ngIf="editMode"
|
||||
[table]="content"
|
||||
[row]="editRow"
|
||||
[column]="column"
|
||||
(save)="onSaveChanges()"
|
||||
(cancel)="onCancelChanges()">
|
||||
</row-editor>
|
||||
|
||||
<div *ngSwitchCase="'Boolean'">
|
||||
<alf-boolean-editor
|
||||
[table]="content"
|
||||
[row]="editRow"
|
||||
[column]="column">
|
||||
</alf-boolean-editor>
|
||||
</div>
|
||||
<div *ngSwitchDefault>
|
||||
<alf-text-editor
|
||||
[table]="content"
|
||||
[row]="editRow"
|
||||
[column]="column">
|
||||
</alf-text-editor>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<button
|
||||
class="mdl-button mdl-js-button mdl-js-ripple-effect"
|
||||
(click)="onCancelChanges()">Cancel</button>
|
||||
<button
|
||||
class="mdl-button mdl-js-button mdl-js-ripple-effect"
|
||||
(click)="onSaveChanges()">Save</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!--<span *ngIf="content.validationSummary" class="mdl-textfield__error">{{content.validationSummary}}</span>-->
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user