mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 06:47:03 +00:00
Merge pull request #14876 from sirreal/master
react-jsonschem-form: Add new `noHtml5Validate` prop to <Form>
This commit is contained in:
Vendored
+3
-2
@@ -1,6 +1,6 @@
|
||||
// Type definitions for react-jsonschema-form 0.38.1
|
||||
// Type definitions for react-jsonschema-form 0.43.0
|
||||
// Project: https://github.com/mozilla-services/react-jsonschema-form
|
||||
// Definitions by: Dan Fox <https://github.com/iamdanfox>
|
||||
// Definitions by: Dan Fox <https://github.com/iamdanfox>, Jon Surrell <https://github.com/sirreal>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.1
|
||||
|
||||
@@ -14,6 +14,7 @@ declare module "react-jsonschema-form" {
|
||||
widgets?: {};
|
||||
fields?: {};
|
||||
noValidate?: boolean;
|
||||
noHtml5Validate?: boolean;
|
||||
showErrorList?: boolean;
|
||||
validate?: (formData: any, errors: any) => any;
|
||||
onChange?: (e: IChangeEvent) => any;
|
||||
|
||||
@@ -78,6 +78,7 @@ export class Example extends React.Component<any, IExampleState> {
|
||||
uiSchema={uiSchema}
|
||||
showErrorList={false}
|
||||
noValidate={false}
|
||||
noHtml5Validate={false}
|
||||
formData={this.state}
|
||||
onChange={(formData) => this.setState({formData})} /> }
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user