Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/segment-boneyard/validate-form-tip
A tooltip error message plugin for validate-form.
https://github.com/segment-boneyard/validate-form-tip
Last synced: about 7 hours ago
JSON representation
A tooltip error message plugin for validate-form.
- Host: GitHub
- URL: https://github.com/segment-boneyard/validate-form-tip
- Owner: segment-boneyard
- Created: 2013-10-18T15:26:02.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2013-10-18T15:28:16.000Z (about 11 years ago)
- Last Synced: 2024-04-09T16:31:15.709Z (7 months ago)
- Language: JavaScript
- Size: 129 KB
- Stars: 4
- Watchers: 39
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- Changelog: History.md
Awesome Lists containing this project
README
# validate-form-tip
A tooltip error message plugin for validate-form.
## Installation
$ component install segmentio/validate-form-tip
## Example
![](https://i.cloudup.com/E8uGdvIfZM.png)
```js
var validate = require('validate-form');
var tip = require('validate-form-tip');
var form = document.querySelector('form');validate(form)
.use(tip({ position: 'west' })
.field('username')
.is('required')
.is(function (val, done) {
isUnique(val, function (err, res) {
done(res.body.unique);
});
});
```## API
### tip(options)
Generate the `tip` plugin for `validate-form` with `options`:{
duration: Number,
effect: String,
position: String
}
## LicenseMIT