way2web-form

1.0.0 • Public • Published

Way2Web Form helpers.

NPM version Downloads

Fix the form atrtibute for old browsers, and add the key combinations to click on a button, like Ctrl+S to submit the form.

Add this to your javascript file:

new W2Form().init();

The default key combinations are Ctrl with the keys in the object:

{
    's':      'button.btn-primary[type=submit]',
    'a':      'a.btn-default',
    'Delete': 'button.btn-danger[type=submit]'
}

Test the package.

To test the package, clone the package to your system. Than run this command.

npm run build

This will copy the test files to the dist, and also build the package files include the dependencies.

When this script is complete without errors, you can open dist/index.html in your browser. Open the dev tools, tab console, and you see all the results of the tests.

If you only want to check the eslint rules, just run.

npm run lint

Readme

Keywords

Package Sidebar

Install

npm i way2web-form

Weekly Downloads

35

Version

1.0.0

License

MIT

Unpacked Size

50.2 kB

Total Files

12

Last publish

Collaborators

  • paqtcom-cto
  • johanvanhelden
  • tomw2w
  • w3news