@sonicgarden/auto-submit-form-element
v0.2.0
Published
Auto submit form element.
Downloads
1,133
Keywords
Readme
<auto-submit-form> element
Auto submit form element.
Installation
$ npm install --save @sonicgarden/auto-submit-form-element
Usage
Script
Import as ES modules:
import '@sonicgarden/auto-submit-form-element'
Html
<auto-submit-form>
<form action="/" method="get">
<select name="filter">
<option></option>
<option value="1">option1</option>
<option value="2">option2</option>
</select>
</form>
</auto-submit-form>
Attributes
submitter
: Submitter selector. (default:undefined
)
Browser support
Browsers without native custom element support require a polyfill.
- Chrome
- Firefox
- Safari
- Microsoft Edge
License
Distributed under the MIT license. See LICENSE for details.