File tree Expand file tree Collapse file tree
src/app/shared/form/builder/ds-dynamic-form-ui/models/list Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import {
22 DynamicFormControlLayout ,
3+ DynamicFormControlRelation ,
34 DynamicRadioGroupModel ,
45 DynamicRadioGroupModelConfig ,
56 serializable
@@ -15,12 +16,14 @@ export interface DynamicListModelConfig extends DynamicRadioGroupModelConfig<any
1516 value ?: VocabularyEntry [ ] ;
1617 required : boolean ;
1718 hint ?: string ;
19+ typeBindRelations ?: DynamicFormControlRelation [ ] ;
1820}
1921
2022export class DynamicListRadioGroupModel extends DynamicRadioGroupModel < any > {
2123
2224 @serializable ( ) vocabularyOptions : VocabularyOptions ;
2325 @serializable ( ) repeatable : boolean ;
26+ @serializable ( ) typeBindRelations : DynamicFormControlRelation [ ] ;
2427 @serializable ( ) groupLength : number ;
2528 @serializable ( ) required : boolean ;
2629 @serializable ( ) hint : string ;
@@ -35,6 +38,7 @@ export class DynamicListRadioGroupModel extends DynamicRadioGroupModel<any> {
3538 this . required = config . required ;
3639 this . hint = config . hint ;
3740 this . value = config . value ;
41+ this . typeBindRelations = config . typeBindRelations ? config . typeBindRelations : [ ] ;
3842 }
3943
4044 get hasAuthority ( ) : boolean {
You can’t perform that action at this time.
0 commit comments