change needed for health care app

This commit is contained in:
Mario Romano
2016-09-06 15:21:55 +01:00
parent a9a2a9d9ae
commit f9210ba048
10 changed files with 16 additions and 4 deletions

View File

@@ -125,6 +125,7 @@ The recommended set of properties can be found in the following table:
| showTitle | boolean | true | Toggle rendering of the form title. |
| showCompleteButton | boolean | true | Toggle rendering of the `Complete` outcome button. |
| showSaveButton | boolean | true | Toggle rendering of the `Save` outcome button. |
| showDebugButton | boolean | false | Toggle debug options. |
| 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. |
| saveMetadata | boolean | false | Store the value of the form as metadata. |

View File

@@ -39,7 +39,7 @@
For debugging and data visualisation purposes,
will be removed during future revisions
-->
<div class="activiti-form-debug-container">
<div *ngIf="showDebugButton" class="activiti-form-debug-container">
<div style="float: right">
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="switch-1" [class.is-checked]="debugMode">

View File

@@ -60,6 +60,8 @@ import { WidgetVisibilityService } from './../services/widget-visibility.servic
*
* {showRefreshButton} boolean - to hide the refresh button of the form pass false, default true;
*
* {showDebugButton} boolean - to show the debug options, default false;
*
* {showCompleteButton} boolean - to hide the complete button of the form pass false, default true;
*
* {showSaveButton} boolean - to hide the save button of the form pass false, default true;
@@ -124,6 +126,9 @@ export class ActivitiForm implements OnInit, AfterViewChecked, OnChanges {
@Input()
showSaveButton: boolean = true;
@Input()
showDebugButton: boolean = false;
@Input()
readOnly: boolean = false;