A number input field for DoneJS using Bootstrap
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.editorconfig
.gitignore
.jshintrc
.npmignore
.travis.yml
CONTRIBUTING.md
LICENSE.md
build.js
documentjs.json
index.html
package.json
readme.md
test.html

readme.md

donejs-number-input

Build Status

A number input field for DoneJS using Bootstrap

Usage

ES6 use

With StealJS, you can import this module directly in a template that is autorendered:

import plugin from 'donejs-number-input';

CommonJS use

Use require to load donejs-number-input and everything else needed to create a template that uses donejs-number-input:

var plugin = require("donejs-number-input");

AMD use

Configure the can and jquery paths and the donejs-number-input package:

<script src="require.js"></script>
<script>
	require.config({
	    paths: {
	        "jquery": "node_modules/jquery/dist/jquery",
	        "can": "node_modules/canjs/dist/amd/can"
	    },
	    packages: [{
		    	name: 'donejs-number-input',
		    	location: 'node_modules/donejs-number-input/dist/amd',
		    	main: 'lib/donejs-number-input'
	    }]
	});
	require(["main-amd"], function(){});
</script>

Standalone use

Load the global version of the plugin:

<script src='./node_modules/donejs-number-input/dist/global/donejs-number-input.js'></script>