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 ,
@@ -16,12 +17,14 @@ export interface DynamicListModelConfig extends DynamicRadioGroupModelConfig<any
1617 value ?: VocabularyEntry [ ] ;
1718 required : boolean ;
1819 hint ?: string ;
20+ typeBindRelations ?: DynamicFormControlRelation [ ] ;
1921}
2022
2123export class DynamicListRadioGroupModel extends DynamicRadioGroupModel < any > {
2224
2325 @serializable ( ) vocabularyOptions : VocabularyOptions ;
2426 @serializable ( ) repeatable : boolean ;
27+ @serializable ( ) typeBindRelations : DynamicFormControlRelation [ ] ;
2528 @serializable ( ) groupLength : number ;
2629 @serializable ( ) required : boolean ;
2730 @serializable ( ) hint : string ;
@@ -36,6 +39,7 @@ export class DynamicListRadioGroupModel extends DynamicRadioGroupModel<any> {
3639 this . required = config . required ;
3740 this . hint = config . hint ;
3841 this . value = config . value ;
42+ this . typeBindRelations = config . typeBindRelations ? config . typeBindRelations : [ ] ;
3943 }
4044
4145 get hasAuthority ( ) : boolean {
You can’t perform that action at this time.
0 commit comments