@@ -2,6 +2,7 @@ import { Subject } from 'rxjs';
22import {
33 DynamicCheckboxGroupModel ,
44 DynamicFormControlLayout ,
5+ DynamicFormControlRelation ,
56 DynamicFormGroupModelConfig ,
67 serializable
78} from '@ng-dynamic-forms/core' ;
@@ -15,6 +16,7 @@ export interface DynamicListCheckboxGroupModelConfig extends DynamicFormGroupMod
1516 groupLength ?: number ;
1617 repeatable : boolean ;
1718 value ?: any ;
19+ typeBindRelations ?: DynamicFormControlRelation [ ] ;
1820}
1921
2022export class DynamicListCheckboxGroupModel extends DynamicCheckboxGroupModel {
@@ -23,6 +25,7 @@ export class DynamicListCheckboxGroupModel extends DynamicCheckboxGroupModel {
2325 @serializable ( ) repeatable : boolean ;
2426 @serializable ( ) groupLength : number ;
2527 @serializable ( ) _value : VocabularyEntry [ ] ;
28+ @serializable ( ) typeBindRelations : DynamicFormControlRelation [ ] ;
2629 isListGroup = true ;
2730 valueUpdates : Subject < any > ;
2831
@@ -37,6 +40,7 @@ export class DynamicListCheckboxGroupModel extends DynamicCheckboxGroupModel {
3740 this . valueUpdates = new Subject < any > ( ) ;
3841 this . valueUpdates . subscribe ( ( value : VocabularyEntry | VocabularyEntry [ ] ) => this . value = value ) ;
3942 this . valueUpdates . next ( config . value ) ;
43+ this . typeBindRelations = config . typeBindRelations ? config . typeBindRelations : [ ] ;
4044 }
4145
4246 get hasAuthority ( ) : boolean {
0 commit comments