#985 'required' validation for dynamic table

This commit is contained in:
Denys Vuika
2016-11-03 12:20:47 +00:00
parent d3f6824bde
commit ce151f23e0
5 changed files with 81 additions and 16 deletions

View File

@@ -39,6 +39,16 @@ export class DynamicTableWidget extends WidgetComponent {
super();
}
isValid() {
let result = true;
if (this.content && this.content.field) {
result = this.content.field.isValid;
}
return result;
}
onRowClicked(row: DynamicTableRow) {
if (this.content) {
this.content.selectedRow = row;