Skip to content

Set of methods representing post form submission behaviour

License

Notifications You must be signed in to change notification settings

sebastiansulinski/js-behaviours

Repository files navigation

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published