@webhare/formsapi-parsleyjs

1.0.1 • Public • Published

WebHare Formsapi/parsleyjs integration

This module integrates parsley to replace standard validation in the WebHare formsapi

Usage

Install the module

whcd <project>/webdesigns/webdesign
npm i @webhare/formsapi-parsleyjs

Use the module

import * as dompack from 'dompack';
import ParsleyForm from '@webhare/formsapi-parsleyjs'

dompack.register('form.wh-form', form => new ParsleyForm(form));

Replacing forms/parsley

If your code was currently importing from @mod-publisher/js/forms/parsley you can replace it by importing this module, updating the library name (see above) and removing the jQuery parameter from your call to new ParsleyForm

Readme

Keywords

none

Package Sidebar

Install

npm i @webhare/formsapi-parsleyjs

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

11.4 kB

Total Files

5

Last publish

Collaborators

  • krisbreuker
  • unilynx
  • webharebv
  • webharerob