mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
#985 'required' validation for dynamic table
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user