All Projects → rajeshwarpatlolla → Ionic Ratings

rajeshwarpatlolla / Ionic Ratings

Licence: mit
'ionic-ratings' bower component for ionic framework applications

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Ionic Ratings

Ion Digit Keyboard V2
A digital keyboard plugin to use in Ionic 2 applications.
Stars: ✭ 97 (+67.24%)
Mutual labels:  ionic, angularjs
Ionic Toast
'ionic-toast' bower component for ionic framework applications
Stars: ✭ 160 (+175.86%)
Mutual labels:  ionic, angularjs
Blog
lizhonghui's blog
Stars: ✭ 109 (+87.93%)
Mutual labels:  ionic, angularjs
Mobiscroll
Cross platform UI controls for progressive web and hybrid apps (plain JS, jQuery, Angular and React)
Stars: ✭ 1,510 (+2503.45%)
Mutual labels:  ionic, angularjs
Ionic Native Transitions
[Maintenance only] Native transitions (iOS & Android) for Ionic Framework
Stars: ✭ 589 (+915.52%)
Mutual labels:  ionic, angularjs
Building A Complete Mobile App With Ionic Framework
JSConfUY 2015 Ionic workshop app. Ionic example conference app.
Stars: ✭ 89 (+53.45%)
Mutual labels:  ionic, angularjs
Siberian
Siberian Single App Edition (SAE), free and open-source app builder.
Stars: ✭ 144 (+148.28%)
Mutual labels:  ionic, angularjs
Openbrews
A cross-platform open source app to help you brew beer.
Stars: ✭ 78 (+34.48%)
Mutual labels:  ionic, angularjs
ionic4-angular6-crud-example
Building CRUD Mobile App using Ionic 4, Angular 6 and Cordova
Stars: ✭ 50 (-13.79%)
Mutual labels:  angularjs, ionic
Mobile.UP
Mobile.UP
Stars: ✭ 13 (-77.59%)
Mutual labels:  angularjs, ionic
ionic4-angular7-example
Ionic 4, Angular 7 and Cordova Tutorial: Build CRUD Mobile Apps
Stars: ✭ 57 (-1.72%)
Mutual labels:  angularjs, ionic
Zmninja
High performance, cross platform ionic app for Home/Commerical Security Surveillance using ZoneMinder
Stars: ✭ 762 (+1213.79%)
Mutual labels:  ionic, angularjs
Ionic Datepicker
'ionic-datepicker' bower component for ionic framework applications
Stars: ✭ 652 (+1024.14%)
Mutual labels:  ionic, angularjs
Ionic3 Angular43 Httpclient
Example of Ionic 3 and the new Angular 4.3 HTTPClient
Stars: ✭ 20 (-65.52%)
Mutual labels:  ionic, angularjs
Klask Io
klask.io is an open source search engine for source code, live demo
Stars: ✭ 45 (-22.41%)
Mutual labels:  angularjs
Ionic Chat With Firebase
IONIC Chat With Firebase
Stars: ✭ 53 (-8.62%)
Mutual labels:  ionic
Yester
A simpler history routing solution 🌹
Stars: ✭ 45 (-22.41%)
Mutual labels:  angularjs
Imojo
Ionic chat application
Stars: ✭ 45 (-22.41%)
Mutual labels:  ionic
Evalai
☁️ 🚀 📊 📈 Evaluating state of the art in AI
Stars: ✭ 1,087 (+1774.14%)
Mutual labels:  angularjs
Ngautocomplete
Light-weight autocomplete component for Angular.
Stars: ✭ 52 (-10.34%)
Mutual labels:  angularjs

bitHound Score

##Introduction:

This is an ionic-ratings component which can be used with any Ionic framework's application.

View plunker Demo

View codepen Demo

##Prerequisites.

  • node.js
  • bower
  • gulp.

##How to use:

1) In your project repository install the ionic-ratings using bower
bower install ionic-ratings --save

This will install the latest version released.

2) Give the path of ionic-ratings.js in your index.html file.
<!-- path to ionic/angularjs js -->
<script src="lib/ionic-ratings/dist/ionic-ratings.min.js"></script>
or
<script src="lib/ionic-ratings/src/ionic-ratings.js"></script>
3) In your application module inject the dependency ionic-ratings, in order to work with it.
angular.module('mainModuleName', ['ionic', 'ionic-ratings']){
 //
}
4) In your controller, please define the object which you need to pass to the directive.
.controller('ControllerName', ['$scope', function($scope) {
   
      $scope.ratingsObject = {
        iconOn: 'ion-ios-star',    //Optional
        iconOff: 'ion-ios-star-outline',   //Optional
        iconOnColor: 'rgb(200, 200, 100)',  //Optional
        iconOffColor:  'rgb(200, 100, 100)',    //Optional
        rating:  2, //Optional
        minRating:1,    //Optional
        readOnly: true, //Optional
        callback: function(rating, index) {    //Mandatory
          $scope.ratingsCallback(rating, index);
        }
      };
  
      $scope.ratingsCallback = function(rating, index) {
        console.log('Selected rating is : ', rating, ' and the index is : ', index);
      };

}])

The properties of are as follows.

a) iconOn (Optional) : You can give any icon from ionicons. This icon will be shown when the icon is active. Default value is ion-ios-star.

b) iconOff (Optional) : You can give any icon from ionicons. This icon will be shown when the icon is inactive. Default value is ion-ios-star-outline.

c) iconOnColor (Optional) : You can give any color. The color format can be red or #00FF00 or rgb(200, 200, 100). This color will be shown when the icon is active. The default value is rgb(200, 200, 100).

d) iconOffColor (Optional) : You can give any color. The color format can be red or #00FF00 or rgb(200, 200, 100). This color will be shown when the icon is inactive. The default value is rgb(200, 100, 100).

e) rating (Optional) : You can pass any values starting from 0. This is the initial/default rating. Default value is 0.

f) minRating (Optional) : You can pass any values starting from 0. This is the minimum value a user can select. Default value is 0.

g) readOnly (Optional) : This takes two values. If you wish to make it read only, give true or else you can give false. Default value is false. If you wish to make it read only please add the below css class to your css file.

  .ionic_ratings .read_only {
    pointer-events:none !important;
  }

h) callback (Mandatory) : This will be called when the user selects a rating. You can get the selected rating in this callback function.

5) In your template you can use like below

Without ng-repeat

<ionic-ratings ratingsobj='ratingsObject' index='0'></ionic-ratings>

Within ng-repeat

<ionic-ratings ratingsobj='ratingsObject' index='$index'></ionic-ratings>

index : This is mandatory property which will help to get the index of the selected item, if this is used in side ng-repeat. This will be sent in the callback function. The value of the index is zero based similar to $index.

##CSS Classes: You can customize font, width and height of the icons using these classes.

1) ionic_rating_icon_on
2) ionic_rating_icon_off

ionic-ratings icon on ionic-ratings icon off

You can also use the following css class for changing the properties of each icon.

  .ionic_ratings .icon {
    font-size: 50px;
  }

##Screen Shots:

Once you are successfully done with the above steps, you should be able to see the below screen shots.

ionic-ratings buttons

##Versions:

1) v0.1.0

The whole ionic-ratings component functionality has been implemented, and it can be installed with the command bower install ionic-ratings --save

2) v0.2.0

Read only feature added.

3) v0.3.0

New feature

##License: MIT

##Contact: gmail : [email protected]

github : https://github.com/rajeshwarpatlolla

twitter : https://twitter.com/rajeshwar_9032

facebook : https://www.facebook.com/rajeshwarpatlolla

paypal : [email protected]

Comment or rate it : http://market.ionic.io/plugins/ionicratings

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].