0.0.41 • Published 9 years ago

graphql-forms v0.0.41

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

graphql-forms

Installation

npm install graphql-forms --save

General

API

Form Props

  • object: The GraphQLObjectType object. - (mandatory)
  • data: A data model to edit, should follow the provided schema. - (optional)
  • formOptions: Options for the apperance and the behavior of the form. - (optional)
  • fieldsOptions: A map of options for the apperance and the behavior of each field. - (optional)
  • onChange: A function that is being when user change one of the fields. Function(path, value, formValue) - (optional)
  • onSubmit: A function that is being invoked when user clicks submit. Function(formValue) - (optional)

Form Options

  • nestedLevels - the maximum nesting levels that will be rendered in the form.

Field Options

  • _label - the label/title of the field.
  • _helpText - the help text/description of the field.
  • _placeholder - in case of scalars, a placeholder to be displayed.
0.0.41

9 years ago

0.0.40

9 years ago

0.0.39

9 years ago

0.0.38

9 years ago

0.0.37

9 years ago

0.0.36

9 years ago

0.0.35

9 years ago

0.0.34

9 years ago

0.0.33

9 years ago

0.0.32

9 years ago

0.0.31

9 years ago

0.0.30

9 years ago

0.0.29

9 years ago

0.0.28

9 years ago

0.0.27

9 years ago

0.0.26

9 years ago

0.0.25

9 years ago

0.0.24

9 years ago

0.0.23

9 years ago

0.0.22

9 years ago

0.0.21

9 years ago

0.0.20

9 years ago

0.0.19

9 years ago

0.0.18

9 years ago

0.0.17

9 years ago

0.0.16

9 years ago

0.0.15

9 years ago

0.0.14

9 years ago

0.0.13

9 years ago

0.0.12

9 years ago

0.0.11

9 years ago

0.0.10

9 years ago

0.0.9

9 years ago

0.0.8

9 years ago

0.0.7

9 years ago

0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago