Nanobots Producing Megastructures

    @domodel/form

    0.0.13 • Public • Published

    domodel-form

    Form system for domodel.

    Getting started

    Installing

    • npm install @domodel/form

    Usage

    import { Core, Observable, Binding } from "domodel"
    import { FormModel, FormBinding, Form } from "@domodel/form"
    import MyFormModel from "./form.js"
    
    export default class extends Binding {
    
      onCreated() {
    
        const form = new Form()
    
        this.listen(form, "submitted", data => {
          console.log(`Your name is: ${data.name}`)
        })
    
        Core.run(FormModel(MyFormModel), { binding: new FormBinding({ form }) })
    
      }
    
    }

    Keywords

    none

    Install

    npm i @domodel/form

    DownloadsWeekly Downloads

    4

    Version

    0.0.13

    License

    MIT

    Unpacked Size

    15.5 kB

    Total Files

    15

    Last publish

    Collaborators

    • thoughtsunificator