mithril-ui-form-datetime-plugin
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

A datetime plugin for Mithril-ui-form

Mithril-ui-form is a declarative framwork to create forms using the front-end Mithril framework and mithril-materialized components using the materialize-css design theme.

A simple datetime control, i.e. a date and time combination

Include datetime control

import { datetimePlugin } from "mithril-ui-form-datetime-plugin";

...

registerPlugin("datetime", datetimePlugin);

Optional CSS style

Please include the following CSS style to make it look good.

{ 
  "id": "myTimeOfBirth", 
  "type": "datetime",
  "label": "Time of birth?"
},

Package Sidebar

Install

npm i mithril-ui-form-datetime-plugin

Weekly Downloads

0

Version

0.0.4

License

MIT

Unpacked Size

3.29 MB

Total Files

13

Last publish

Collaborators

  • rinzeb