/ui.cg

AngularJS input directives

Primary LanguageJavaScriptMIT LicenseMIT

ui.cg

Input controls for your Angular apps, made easy.

API Reference

An API reference can be here:

http://geersch.github.io/ui.cg/#/api

Controls

Development

Prepare your environment

  • Install Node.js and NPM
  • Install global dev dependencies: npm install -g grunt-cli karma
  • Install local dev dependencies: npm install while current directory is ui.cg repository

Build

  • Build the project: grunt build

Distributables (ui-cg-.js & ui-cg-.min.js) will be created by default. Once built, you only need to add the module to your AngularJS module:

angular.module('myModule', ['ui.cg']);

Check the Grunt build file for other tasks that are defined for this project.

Todo's

  • fix issue with numberinput accepting - sign
  • add support for a maximum value (default: none) for the numberinput
  • add support for a minimum value (default: none) for the numberinput
  • add support for spin buttons (on by default)
  • numberinput -> mouse wheel events should be opt-out
  • numberinput -> keyboard events should be opt-out
  • numberinput -> option to make it readonly
  • add niClass to specify a class for the input itself instead of the container
  • numberinput -> Support for ngChange