1.1.4 • Published 8 years ago

ionic-numberpicker v1.1.4

Weekly downloads
-
License
MIT
Repository
-
Last release
8 years ago

##Introduction:

This is a ionic-numberpicker bower component which can be used with any Ionic framework's application.

It is based on the 'ionic-timepicker' and 'ionic-datepicker' by https://github.com/rajeshwarpatlolla

##Prerequisites.

1) node.js, npm, ionic, bower and gulp.

##How to use:

1) In your project repository install the ionic time picker using bower

bower install ionic-numberpicker --save

2) Give the path of ionic-numberpicker.bundle.min.js in your index.html file.

<!-- path to ionic/angularjs js -->
<script src="lib/ionic-numberpicker/dist/ionic-numberpicker.bundle.min.js"></script>

3) In your application module inject the dependency ionic-numberpicker, in order to work with the ionic-numberpicker component

angular.module('modulename', ['ionic', 'ionic-numberpicker']){

}

4) Use the below format in your template's corresponding controller

$scope.numberPickerObject = {
    inputValue: 0, //Optional
    minValue: -9007199254740991,
    maxValue: 9007199254740991,
    precision: 3,  //Optional
    decimalStep: 0.25,  //Optional
    format: "DECIMAL",  //Optional - "WHOLE" or "DECIMAL"
    unit: "",  //Optional - "m", "kg", "℃" or whatever you want
    titleLabel: 'Number Picker',  //Optional
    setLabel: 'Set',  //Optional
    closeLabel: 'Close',  //Optional
    setButtonType: 'button-positive',  //Optional
    closeButtonType: 'button-stable',  //Optional
    callback: function (val) {    //Mandatory
    timePickerCallback(val);
  }
};

##Versions:

2) v1.1

  • Fixed issue with floating point math
  • Added support for negative numbers

1) v1.0

  • Number picker functionality has been implemented

##License: MIT

##Contact: email : matt@milkcan.io

##Other Links:

1.1.4

8 years ago

1.1.3

8 years ago

1.1.2

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.1

9 years ago

1.0.0

9 years ago