-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathHTMLFormElement.res
More file actions
36 lines (30 loc) · 1.06 KB
/
HTMLFormElement.res
File metadata and controls
36 lines (30 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
open DOMAPI
include HTMLElement.Impl({type t = htmlFormElement})
/**
Fires when a FORM is about to be submitted.
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/submit)
*/
@send
external submit: htmlFormElement => unit = "submit"
/**
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/requestSubmit)
*/
@send
external requestSubmit: (htmlFormElement, ~submitter: htmlElement=?) => unit = "requestSubmit"
/**
Fires when the user resets a form.
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/reset)
*/
@send
external reset: htmlFormElement => unit = "reset"
/**
Returns whether a form will validate when it is submitted, without having to submit it.
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/checkValidity)
*/
@send
external checkValidity: htmlFormElement => bool = "checkValidity"
/**
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/reportValidity)
*/
@send
external reportValidity: htmlFormElement => bool = "reportValidity"