cusom-form-builder
v0.0.2
Published
Downloads
4
Readme
Usage Npm Package
Install package
sudo npm i custom-form-builder
Import Module
import { FormBuilderModule } from "@mygovernance/form-builder";
HTML usage
<custom-form-builder
[formData]="form"
(formTempChange)="onChange($event)">
</custom-form-builder>
Compoment Input Options
form: object = {
components: [
{
type: "textfield",
label: "FirstName",
key: "firstName",
input: true
},
{
type: "textfield",
label: "LastName",
key: "lastName",
input: true
},
{
type: "email",
label: "Email",
key: "email",
input: true
},
{
type: "button",
action: "Submit",
label: "Submit",
theme: "primary"
}
]
};