mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
#538 ignore label as value
This commit is contained in:
@@ -29,6 +29,7 @@ export class FormFieldTypes {
|
||||
static HYPERLINK: string = 'hyperlink';
|
||||
static RADIO_BUTTONS: string = 'radio-buttons';
|
||||
static DISPLAY_VALUE: string = 'readonly';
|
||||
static READONLY_TEXT: string = 'readonly-text';
|
||||
}
|
||||
|
||||
export class FormWidgetModel {
|
||||
@@ -177,11 +178,21 @@ export class FormFieldModel extends FormWidgetModel {
|
||||
this.form.values[this.id] = this.options[0].id;
|
||||
}
|
||||
} else {
|
||||
if (!this.isIngonreType()) {
|
||||
this.form.values[this.id] = this.value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private isIngonreType(): boolean {
|
||||
if (this.type === FormFieldTypes.READONLY_TEXT) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export class ContainerColumnModel {
|
||||
|
||||
size: number = 12;
|
||||
|
||||
Reference in New Issue
Block a user