1.0.19 • Published 2 years ago

dynamic-form-create v1.0.19

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years 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

2 years ago

1.0.18

2 years ago

1.0.17

2 years ago

1.0.16

2 years ago

1.0.15

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

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