@bpmn-io/form-js-viewer
Advanced tools
Comparing version 0.9.9 to 0.10.0-alpha.0
@@ -17,3 +17,3 @@ /** | ||
import Form from "./Form"; | ||
export const schemaVersion: 5; | ||
export const schemaVersion: 6; | ||
export { Form }; |
@@ -13,2 +13,3 @@ export const formFields: (typeof Button | typeof Default | typeof Radio | typeof Text)[]; | ||
import Textfield from "./form-fields/Textfield"; | ||
export { Button, Checkbox, Checklist, Default, FormComponent, Number, Radio, Select, Taglist, Text, Textfield }; | ||
import Textarea from "./form-fields/Textarea"; | ||
export { Button, Checkbox, Checklist, Default, FormComponent, Number, Radio, Select, Taglist, Text, Textfield, Textarea }; |
@@ -1,2 +0,5 @@ | ||
export function formFieldClasses(type: any, errors?: any[]): string; | ||
export function formFieldClasses(type: any, { errors, disabled }?: { | ||
errors?: any[]; | ||
disabled?: boolean; | ||
}): string; | ||
export function prefixId(id: any, formId: any): string; | ||
@@ -3,0 +6,0 @@ export function markdownToHTML(markdown: any): any; |
{ | ||
"name": "@bpmn-io/form-js-viewer", | ||
"version": "0.9.9", | ||
"version": "0.10.0-alpha.0", | ||
"description": "View forms - powered by bpmn.io", | ||
@@ -55,3 +55,3 @@ "exports": { | ||
], | ||
"gitHead": "a0c48668fabc92d210bd5675986715f262192d77" | ||
"gitHead": "ac7ce2105fc1c982d1da45d4f863c8999d9d736e" | ||
} |
@@ -41,5 +41,11 @@ # @bpmn-io/form-js-viewer | ||
// add event listeners | ||
form.on('submit', event => { | ||
console.log('Form <submit>', event); | ||
}); | ||
// provide a priority to event listeners | ||
form.on('changed', 500, event => { | ||
console.log('Form <changed>', event); | ||
}); | ||
``` | ||
@@ -46,0 +52,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
444651
50
5871
165