1.0.19 • Published 1 year ago

dynamic-form-create v1.0.19

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

Dynamic Form Create

Dynamic Form Create provides components for creating form fields dynamically with feature of visibility on-off depend on other field.

Installation

yarn

yarn add dynamic-form-create

npm

npm install dynamic-form-create

Live Preview

Usage

Import

import DynamicFormCreate from "dynamic-form-create";
const childCompRef = React.useRef(null);
const [formData, setFormData] = React.useState([]);
const saveNewData = () => {
  const formConfigData = childCompRef?.current?.formConfigData();
  console.log(formConfigData);
};

Component

<DynamicFormCreate
  ref={childCompRef}
  formData={formData}
  setFormData={setFormData}
  activeCreateMode={true} //after complete data making, pass the prop as false
  saveNewData={() => saveNewData()}
/>
1.0.19

1 year ago

1.0.18

1 year ago

1.0.17

1 year ago

1.0.16

1 year ago

1.0.15

1 year ago

1.0.14

1 year ago

1.0.13

1 year ago

1.0.12

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago