Giter VIP home page Giter VIP logo

graphql-forms's Introduction

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.

graphql-forms's People

Contributors

hlandao avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.