aboutsummaryrefslogtreecommitdiff
path: root/packages/aml-backoffice-ui/src/handlers/InputChoiceHorizontal.stories.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'packages/aml-backoffice-ui/src/handlers/InputChoiceHorizontal.stories.tsx')
-rw-r--r--packages/aml-backoffice-ui/src/handlers/InputChoiceHorizontal.stories.tsx14
1 files changed, 12 insertions, 2 deletions
diff --git a/packages/aml-backoffice-ui/src/handlers/InputChoiceHorizontal.stories.tsx b/packages/aml-backoffice-ui/src/handlers/InputChoiceHorizontal.stories.tsx
index e59bbe396..7872afac7 100644
--- a/packages/aml-backoffice-ui/src/handlers/InputChoiceHorizontal.stories.tsx
+++ b/packages/aml-backoffice-ui/src/handlers/InputChoiceHorizontal.stories.tsx
@@ -40,17 +40,27 @@ type TargetObject = {
comment: string;
}
const initial: TargetObject = {
- comment: "some initial comment"
+ comment: "0"
}
const form: FlexibleForm<TargetObject> = {
design: [{
title: "this is a simple form" as TranslatedString,
fields: [{
- type: "text",
+ type: "choiceHorizontal",
props: {
label: "label of the field" as TranslatedString,
name: "comment",
+ choices: [{
+ label: "first choice" as TranslatedString,
+ value: "1"
+ }, {
+ label: "second choice" as TranslatedString,
+ value: "2"
+ }, {
+ label: "thrid choice" as TranslatedString,
+ value: "3"
+ },],
},
}]
}]