0.1.0 • Published 4 years ago

@ssdcode/js-behaviour v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

Behaviour

Class with a 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:unit

Contributions

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