Description
NVal-Tippy is a wrapper for NVal and Tippy.js plugins that allows you to display validation errors in tooltips.
Installation
NPM
npm install nval-tippy
CDN
Usage
Declare
NPM version
Import:
;
Then:
// Pass the form element as an argument.;
CDN version
// Pass the form element as an argument.var validator = document;
Run
validator.isValid; // Returns boolean.
Configuration
Validation
NValTippy object extends NVal. To configure validation use the official documentation for it.
Tooltips
Tooltip options are available by the public property tippyOptions
.
To configure tooltips use the official documentation for Tippy.js.