Skip to content

Commit

Permalink
enable type-bind for checkbox inputs during submission
Browse files Browse the repository at this point in the history
  • Loading branch information
max-nuding committed Dec 6, 2023
1 parent 08df2ea commit 8de483a
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 @@ -15,12 +16,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 @@ -35,6 +38,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 8de483a

Please sign in to comment.