Skip to content

Latest commit

 

History

History
37 lines (27 loc) · 854 Bytes

README.md

File metadata and controls

37 lines (27 loc) · 854 Bytes

matdu:meteor-materialize-nouislider

Add noUISlider to Meteor

meteor add matdu:meteor-materialize-nouislider

Uses the custom noUiSliderlibrary from Materialize.

Usage

Add the to your onRendered (blaze) or componentDidMount (react).

##Example ###Blaze

Template["name"].onRendered(function(){
	var slider = document.getElementById('slider');
	noUiSlider.create(slider, {
		start: [20, 80],
		connect: true,
		step: 1,
		range: {
			'min': 0,
			'max': 100
		}
	});
})

Documentation

Checkout the noUISlider project at https://github.com/leongersen/noUiSlider/stargazers for a more detailed documention.

Collaboration

Pull requests are ALWAYS appreciated! Thank you for your support!