#1113 - Fix for show values on completed form

This commit is contained in:
Vito Albano
2016-11-23 01:58:30 +00:00
committed by Mario Romano
parent 98f3cc25f8
commit 424511d1f6
15 changed files with 261 additions and 73 deletions

View File

@@ -18,6 +18,7 @@
import { Component, ElementRef, OnInit } from '@angular/core';
import { WidgetComponent } from './../widget.component';
import { DynamicTableModel, DynamicTableRow, DynamicTableColumn } from './dynamic-table.widget.model';
import { WidgetVisibilityService } from '../../../services/widget-visibility.service';
@Component({
moduleId: module.id,
@@ -34,13 +35,15 @@ export class DynamicTableWidget extends WidgetComponent implements OnInit {
editMode: boolean = false;
editRow: DynamicTableRow = null;
constructor(private elementRef: ElementRef) {
constructor(private elementRef: ElementRef,
private visibilityService: WidgetVisibilityService) {
super();
}
ngOnInit() {
if (this.field) {
this.content = new DynamicTableModel(this.field.form, this.field.json);
this.visibilityService.refreshVisibility(this.field.form);
}
}