Form Manager
A powerfull Manager for all your forms
Table of Content
Installation
nothing difficult
yarn add @dzeio/form-manager
or
npm install @dzeio/form-manager
usage
Typescript
import FormManager from '@dzeio/form-manager';
const fm = new FormManager(docuement.getElementById("form"));
import { FMRepeatAssignment } from '@dzeio/FormManager/modules/FMRepeatInput'
fm.assign(FMRepeatAssignment)
import FMDateInput from '../FormManagerGit/modules/FMDateInput'
fm.assign({
input: FMDateInput,
type: "date",
tagName: "input"
});
fm.setupInputs();
fm.verify();
fm.lastErroredInput
fm.submit("/api/idk", (ev) => {}, true)
fm.getJSON()
fm.fillFromURI("uri")
fm.fillFromJSON(json)
fm.setMode(FMMode.ViewMode or FMMode.EditMode)
fm.setModeForInput(FMMode.ViewMode or FMMode.EditMode, "inputName")
fm.clear()
Modules & Attributes
Modules
Module name | Description |
---|
Datalist | Manage the datalist better than ever ! |
Date | Manage the date element |
File | Manage single file uploads |
Repeat | Make your fields repeatable ! |
Select | Fix your Select |
Attributes
Issues
Complete listing here
Changelog
here