Sets default options for form submission and validation.
The number of miliseconds to wait before up.observe()
runs the callback
after the input value changes. Use this to limit how often the callback
will be invoked for a fast typist.
An array of CSS selectors matching forms that will be submitted through Unpoly.
You can configure Unpoly to handle all forms on a page without requiring an [up-submit]
attribute:
up.form.config.submitSelectors.push('form')
Individual forms may opt out with an [up-submit=false]
attribute.
You may configure additional exceptions in config.noSubmitSelectors
.
Exceptions to config.submitSelectors
.
Matching forms will not be submitted through Unpoly, even if they match config.submitSelectors
.
An array of CSS selectors that are searched around a form field that wants to validate.
The first matching selector will be updated with the validation messages from the server.
By default this looks for a <fieldset>
, <label>
or <form>
around the validating input field.
An array of CSS selectors that represent form fields, such as input
or select
.
An array of CSS selectors that represent submit buttons, such as input[type=submit]
.