Skip to content

Commit

Permalink
Merge pull request #2693 from hutattedonmyarm/2687-radio-buttons-type…
Browse files Browse the repository at this point in the history
…-bind

Enable type-bind for checkbox inputs during submission
  • Loading branch information
tdonohue authored Apr 30, 2024
2 parents 41a00e3 + 8de483a commit 81807da
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import {
DynamicFormControlLayout,
DynamicFormControlRelation,
DynamicRadioGroupModel,
DynamicRadioGroupModelConfig,
serializable,
Expand All @@ -16,12 +17,14 @@ export interface DynamicListModelConfig extends DynamicRadioGroupModelConfig<any
value?: VocabularyEntry[];
required: boolean;
hint?: string;
typeBindRelations?: DynamicFormControlRelation[];
}

export class DynamicListRadioGroupModel extends DynamicRadioGroupModel<any> {

@serializable() vocabularyOptions: VocabularyOptions;
@serializable() repeatable: boolean;
@serializable() typeBindRelations: DynamicFormControlRelation[];
@serializable() groupLength: number;
@serializable() required: boolean;
@serializable() hint: string;
Expand All @@ -36,6 +39,7 @@ export class DynamicListRadioGroupModel extends DynamicRadioGroupModel<any> {
this.required = config.required;
this.hint = config.hint;
this.value = config.value;
this.typeBindRelations = config.typeBindRelations ? config.typeBindRelations : [];
}

get hasAuthority(): boolean {
Expand Down

0 comments on commit 81807da

Please sign in to comment.