1.0.32 • Published 5 months ago

react-dynamic-json-form v1.0.32

Weekly downloads
-
License
MIT
Repository
-
Last release
5 months ago

How To Use

Field

NameDescriptionRequired
idThis id will be put as the name of the field / input element✔️
typeThe type of the field (text, select, textarea, upload, radio, checkMark,checkbox, search, multiWebURL)✔️
prefixThis field will be put as the label before the field
suffixThis field will be put as the label after the field
childChild (Except multiWebURL)

Note : If you don't provide a value for a field, it will be considered undefined. Note : Pattern validation value must contain valid regEx without any starting /, ending / and flag /img.

Child

{
  "child": [
    {
      "match": "Surat",
      "field": {
        "id": "area",
        "label": "Area",
        "type": "checkbox",
        "options": "[Katargam, Singanpore, Ved, Adajan]"
      }
    },
    {
      "match": "Mumbai",
      "field": {
        "value": "",
        "id": "area",
        "type": "text",
        "label": "Area",
        "placeholder": "Enter area"
      }
    }
  ]
}

InputField Extends Field

NameDescriptione.g.
LabelLabel of the fieldFirst Name , age , email
PlaceholderThe placeholder of the fieldEnter First Name , Enter age, Enter email
valueThe default value of the fieldJohn , 20 , test@gmail.com
widthThe width was modified by adjusting its width.10, 20 - (unit in px)
multilineThis is a multi-line text that can be used as a textarea field.true / false
rulesValidation rule for this field.{   required:{     value:true     message:Please enter name   },   min:{     value:18     message:Age Should Be More than 18   },   max:{     value:25     message:Age Should Be Less than 25   },   minLength:{     value:5     message:Name Should Be More than 5 Character   },   maxLength:{     value:10     message:Name Should Be Less than 10 Character   },   pattern:{     value:^A-Z0-9._%+-+@A-Z0-9.-+.A-Z{2}$     message:Enter valid email   },}

Radio Extends Field

NameDescriptione.g.
LabelLabel of the fieldGender
optionsThe options array will be render as multiple Radio Button to select.Male, Female
rulesValidation rule for this field.{   required:{     value:true     message:Please select gender   },}

CheckBox Extends Field

NameDescriptione.g.
LabelLabel of the field.Hobby
optionsThe options array will be render as multiple CheckBox to select.'cricket', 'football'
rulesValidation rule for this field.{   required:{     value:true     message:Please select hobby   },}

CheckMark Extends Field

NameDescriptione.g.
LabelLabel of the field.Hobby
rulesValidation rule for this field.{   required:{     value:true     message:Please select hobby   },}

Select Extends Field

NameDescriptione.g.
LabelLabel of the field.City
valueThe default value of the fieldSurat
optionsThe options of field.Surat, Mumbai, Delhi
rulesValidation rule for this field.{   required:{     value:true     message:Please select city   },}

Search Extends Field

NameDescriptione.g.
LabelLabel of the field.Search code
apiThe api of field.Your API endpoint
PlaceholderThe placeholder of the field.Enter code
rulesValidation rule for this field.{   required:{     value:true     message:Please select 3 value   },   minLength:{     value:3     message:Value not less then 3   },   maxLength:{     value:5     message:Value not more then 5   },}

Upload Extends Field

NameDescriptione.g.
LabelLabel of the field.File
acceptAccept html file type.https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/accept
multipleThe field allows for the selection of multiple files.true / false
rulesValidation rule for this field.{   required:{     value:true     message:File is required   },   size:{     value:100     message:File should be less than 100 Kb   },   resolution:{     value:{       width:100       height:100     },     message:File should be 100 X 100   },}

multiWebURL Extends Field

NameDescriptione.g.
LabelLabel of the field.File
childChild will be render as componentAccept all InputField Props(parameter)
rulesValidation rule for this field.{   NO:You can't pass the rules here. Instead, you can pass rules in child Props(parameter)}
1.0.32

5 months ago

1.0.31

5 months ago

1.0.30

5 months ago

1.0.29

5 months ago

1.0.28

5 months ago

1.0.27

5 months ago

1.0.26-beta.0

6 months ago

1.0.26

6 months ago

1.0.25

6 months ago

1.0.24

6 months ago

1.0.23-beta-13

6 months ago

1.0.23-beta-12

6 months ago

1.0.23-beta-11

6 months ago

1.0.23-beta-10

6 months ago

1.0.23-beta-9

6 months ago

1.0.23-beta-8

6 months ago

1.0.23-beta-7

6 months ago

1.0.23-beta-6

6 months ago

1.0.23-beta-5

6 months ago

1.0.23-beta-4

6 months ago

1.0.23-beta-3

6 months ago

1.0.23-beta-2

6 months ago

1.0.23-beta.1

6 months ago

1.0.23-beta.0

6 months ago

1.0.23

6 months ago

1.0.22-beta.0

6 months ago

1.0.22

6 months ago

1.0.21

6 months ago

1.0.20-beta.7

6 months ago

1.0.20-beta.6

6 months ago

1.0.20-beta.5

6 months ago

1.0.20-beta.4

6 months ago

1.0.20-beta.3

6 months ago

1.0.20-beta.2

6 months ago

1.0.20-beta.1

6 months ago

1.0.20-beta.0

6 months ago

1.0.20

6 months ago

1.0.19

6 months ago

1.0.18

6 months ago

1.0.17

6 months ago

1.0.16

6 months ago

1.0.10

6 months ago

1.0.15

6 months ago

1.0.14

6 months ago

1.0.12

6 months ago

1.0.11

6 months ago

1.0.1

6 months ago