Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sebastiansulinski/js-behaviours
Set of methods representing post form submission behaviour
https://github.com/sebastiansulinski/js-behaviours
behaviours ecmascript6 javascript
Last synced: 3 days ago
JSON representation
Set of methods representing post form submission behaviour
- Host: GitHub
- URL: https://github.com/sebastiansulinski/js-behaviours
- Owner: sebastiansulinski
- License: mit
- Created: 2020-06-05T07:30:26.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-07-15T10:07:09.000Z (over 4 years ago)
- Last Synced: 2024-12-25T08:07:41.353Z (9 days ago)
- Topics: behaviours, ecmascript6, javascript
- Language: JavaScript
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Js Behaviours
Set of methods representing post form submission behaviour.
To accompany [@ssdcode/vue-form](https://github.com/sebastiansulinski/vue-form) v2.## Installation
```bash
npm install @ssdcode/js-behaviours --save-dev
```## Usage
```bash
import { reload, redirect, confirmClear } from '@ssdcode/js-behaviours'reload();
redirect('/home');// from within `vue-form` instance
confirmClear({ message: 'You did it!' }, this);
```## Tests
You can execute tests by calling
```bash
npm run test
```## Contributions
Contributions are welcome - please make sure all PRs have their associated test.