Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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.