mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-19 17:14:57 +00:00
This commit is contained in:
parent
0afcc29e37
commit
fdb232cb40
@ -238,6 +238,7 @@ The recommended set of properties can be found in the following table:
|
|||||||
| `showDebugButton` | boolean | false | Toggle debug options. |
|
| `showDebugButton` | boolean | false | Toggle debug options. |
|
||||||
| `readOnly` | boolean | false | Toggle readonly state of the form. Enforces all form widgets render readonly if enabled. |
|
| `readOnly` | boolean | false | Toggle readonly state of the form. Enforces all form widgets render readonly if enabled. |
|
||||||
| `showRefreshButton` | boolean | true | Toggle rendering of the `Refresh` button. |
|
| `showRefreshButton` | boolean | true | Toggle rendering of the `Refresh` button. |
|
||||||
|
| `showValidationIcon` | boolean | true | Toggle rendering of the validation icon next form title. |
|
||||||
| `saveMetadata` | boolean | false | Store the value of the form as metadata. |
|
| `saveMetadata` | boolean | false | Store the value of the form as metadata. |
|
||||||
| `path` | string | | Path of the folder where to store the metadata. |
|
| `path` | string | | Path of the folder where to store the metadata. |
|
||||||
| `nameNode` (optional) | string | true | Name to assign to the new node where the metadata are stored. |
|
| `nameNode` (optional) | string | true | Name to assign to the new node where the metadata are stored. |
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<div *ngIf="hasForm()">
|
<div *ngIf="hasForm()">
|
||||||
<div class="mdl-card mdl-shadow--2dp activiti-form-container">
|
<div class="mdl-card mdl-shadow--2dp activiti-form-container">
|
||||||
<div class="mdl-card__title">
|
<div class="mdl-card__title">
|
||||||
<i class="material-icons">{{ form.isValid ? 'event_available' : 'event_busy' }}</i>
|
<i *ngIf="showValidationIcon" class="material-icons">{{ form.isValid ? 'event_available' : 'event_busy' }}</i>
|
||||||
<h2 *ngIf="isTitleEnabled()" class="mdl-card__title-text">{{form.taskName}}</h2>
|
<h2 *ngIf="isTitleEnabled()" class="mdl-card__title-text">{{form.taskName}}</h2>
|
||||||
</div>
|
</div>
|
||||||
<div class="mdl-card__media">
|
<div class="mdl-card__media">
|
||||||
|
@ -133,6 +133,9 @@ export class ActivitiForm implements OnInit, AfterViewChecked, OnChanges {
|
|||||||
@Input()
|
@Input()
|
||||||
showRefreshButton: boolean = true;
|
showRefreshButton: boolean = true;
|
||||||
|
|
||||||
|
@Input()
|
||||||
|
showValidationIcon: boolean = true;
|
||||||
|
|
||||||
@Output()
|
@Output()
|
||||||
formSaved: EventEmitter<FormModel> = new EventEmitter<FormModel>();
|
formSaved: EventEmitter<FormModel> = new EventEmitter<FormModel>();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user