UNPKG

@mistio/mist-form

Version:

A Webcomponent that renders a form defined by a JSONSchema & an optional UISchema spec

64 lines 1.58 kB
{ "jsonSchema": { "title": "Date and time widgets", "type": "object", "properties": { "native": { "title": "Native", "description": "May not work on some browsers, notably Firefox Desktop and IE.", "type": "object", "properties": { "datetime": { "type": "string", "format": "date-time" }, "date": { "type": "string", "format": "date" } } }, "alternative": { "title": "Alternative", "description": "These work on most platforms.", "type": "object", "properties": { "alt-datetime": { "type": "string", "format": "date-time" }, "alt-date": { "type": "string", "format": "date" } } } } }, "uiSchema": { "alternative": { "alt-datetime": { "ui:widget": "alt-datetime", "ui:options": { "yearsRange": [ 1980, 2030 ] } }, "alt-date": { "ui:widget": "alt-date", "ui:options": { "yearsRange": [ 1980, 2030 ] } } } }, "formData": { "native": {}, "alternative": {} } }