1.0.41 • Published 2 years ago

ant-design-form-builder v1.0.41

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

ant-design-form-builder

This is a drag and drop antd react form builder.

NPM JavaScript Style Guide

Demo

https://nimble-brigadeiros-2462ca.netlify.app/

Install

npm install --save ant-design-form-builder

Usage

Add Form Builder

import React, { Component } from 'react'
import AntdFormBuilder from 'ant-design-form-builder'

const { FormBuilder } = AntdFormBuilder

class TestFormBuilder extends Component {
  formBuilderRef = React.createRef()

  getJson() {
    formBuilderRef.current.getJson()
  }

  render() {
    return <FormBuilder ref={formBuilderRef} />
  }
}

Add Form Filler

import React, { Component } from 'react'
import AntdFormBuilder from 'ant-design-form-builder'

const { FormFiller } = AntdFormBuilder

class TestFormFiller extends Component {
  data = []
  render() {
    return (
      <FormFiller
        data={this.data}
        onFinishFailed={(errorInfo) => {
          console.log(errorInfo)
        }}
        onFinish={(values) => {
          console.log(values)
        }}
      />
    )
  }
}

Contact us

Email: alt255_dev@protonmail.com

License

MIT © alt255-dev

1.0.41

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago