@ssdcode/js-behaviours

0.1.2 • Public • Published

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:unit

Contributions

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

Package Sidebar

Install

npm i @ssdcode/js-behaviours

Weekly Downloads

0

Version

0.1.2

License

MIT

Unpacked Size

8.03 kB

Total Files

11

Last publish

Collaborators

  • sebastiansulinski