sebastiansulinski / js-behaviours

Set of methods representing post form submission behaviour

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Js Behaviours

Set of methods representing post form submission behaviour. To accompany @ssdcode/vue-form v2.

Installation

npm install @ssdcode/js-behaviours --save-dev

Usage

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

npm run test

Contributions

Contributions are welcome - please make sure all PRs have their associated test.

About

Set of methods representing post form submission behaviour

License:MIT License


Languages

Language:JavaScript 100.0%