#1455 - added new check to show-hide validation icon next form title (#1463)

This commit is contained in:
Vito 2017-01-13 09:56:52 -08:00 committed by Mario Romano
parent 0afcc29e37
commit fdb232cb40
3 changed files with 5 additions and 1 deletions

View File

@ -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. |

View File

@ -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">

View File

@ -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>();