From 9694a3e37d952f3a255725593fdc5881e603b969 Mon Sep 17 00:00:00 2001 From: abhay-raizada Date: Sat, 25 May 2024 18:16:54 +0530 Subject: [PATCH] Add details on option tags --- 101.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/101.md b/101.md index 2253b7b..39bf63b 100644 --- a/101.md +++ b/101.md @@ -28,12 +28,13 @@ Event `30168` describes a form as a parametrized replaceable event, with `field` The different tags used to detail the form are described as: -| Tags | Description | -| -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| d | The unique identifier of a form, for a user | -| name | A text serving as the name of the form | -| settings | An optional global config for the form. | -| field | Contains the following values | +| Tags | Description | +| ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| d | The unique identifier of a form, for a user | +| name | A text serving as the name of the form | +| settings | An optional global config for the form. | +| field | Contains the following values
indexnamedescription
1FieldIdan id that uniqely identifies a field in the forn
2input-typeA field that describes the type of value that can be expected as a response to this field, values can be: `text`, `option` or `label`
3labelA label for the field
4options Only used for input-type option, is a Json stringified array of strings containing [`, <`label`>, ``], optionId can be any any alphanumeric string
5fieldSettingsAn optional JSON stringified object that contains settings specific to the field, for example `renderElement`, a setting which indicates what UI element to render to the client
|
indexnamedescription
1FieldIdan id that uniqely identifies a field in the forn
2input-typeA field that describes the type of value that can be expected as a response to this field, values can be: `text`, `option` or `label`
3labelA label for the field
4options Only used for input-type option, is a Json stringified array of option Tags. | +| Option Tags | Option Tags are defined as: [`, <`label`>, ``], optionId can be any alphanumeric string
5fieldSettingsAn optional JSON stringified object that contains settings specific to the field, for example `renderElement`, a setting which indicates what UI element to render to the client