Skip to content

girassolbit/meteor-autoform-mask

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Meteor AutoForm Masks

Use masks in your AutoForm fields easily with SimpleSchema using jQuery Mask Plugin This package uses (jQuery Mask Plugin)[https://github.com/igorescobar/jQuery-Mask-Plugin] by Igor Escobar

Depends

> meteor add aldeed:autoform

Installation

> meteor add gbit:autoform-mask

See the mask syntax (here)[http://igorescobar.github.io/jQuery-Mask-Plugin/]

In Your SimpleSchema

The mask property can be String or Object

var Example = new SimpleSchema({
	zipCode: {
		type: String,
		autoform:{
			mask: '00000-000'
		}
	},
	percent: {
		type: String,
		autoform: {
			mask: '##0,00%'
		}
	},
	date: {
		type: String,
		autoform: {
			mask: {
				syntax: '00/00/0000',
				options: {
					placeholder: "__/__/____"
				}
			}
		}
	}
});

About

Use masks in your AutoForm fields easily

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published