0.0.5 • Published 1 year ago
@larrypaul93/formeo-extra v0.0.5
Formeo Extra
extending Formeo library
Installation
npm install --save formeo @larrypaul93/formeo-extra
Usage
import { FormeoEditor, FormeoRenderer } from 'formeo'
import {FormeoEditorExtra} from "@larrypaul93/formeo-extra"
// Set up a form builder
const editor = new FormeoEditor(options)
FormeoEditorExtra.setup(editor)
// When you're ready, grab the form data object
// Typically you'd do this in the "onSave" event, which you can configure through the editor's options object
const formData = editor.formData
// Then, when you're ready to render the form, use
const renderer = new FormeoRenderer(options)
renderer.render(formData)