0.0.15 • Published 8 months ago

@domodel/form v0.0.15

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

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 }) })

  }

}
0.0.15

8 months ago

0.0.14

1 year ago

0.0.12

3 years ago

0.0.13

3 years ago

0.0.10

3 years ago

0.0.11

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago