Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Raty | 2,332 | 4 months ago | 60 | mit | JavaScript | |||||
:star2: Raty - A Star Rating Plugin | ||||||||||
Smileyrating | 1,003 | 3 years ago | 1 | June 18, 2019 | 7 | apache-2.0 | Java | |||
SmileyRating is a simple rating bar for android. It displays animated smileys as rating icon. | ||||||||||
React Native Star Rating | 735 | 220 | 36 | 2 years ago | 11 | September 10, 2018 | 48 | JavaScript | ||
A React Native component for generating and displaying interactive star ratings | ||||||||||
Edstarrating | 425 | 71 | 6 years ago | 3 | March 24, 2015 | 18 | Objective-C | |||
Configurable Star Rating control for iOS and OSX | ||||||||||
React Star Rating Component | 322 | 360 | 33 | 4 years ago | 10 | March 04, 2018 | 19 | mit | JavaScript | |
Basic React component for star (or any other icon based) rating elements | ||||||||||
Vue Rate | 213 | 9 | a year ago | 26 | May 16, 2022 | 1 | mit | Vue | ||
Rate component for Vue | ||||||||||
Material Ui Rating | 90 | 40 | 2 | 6 months ago | 21 | August 14, 2019 | 1 | mit | JavaScript | |
Rate something with style. | ||||||||||
Angular Input Stars | 76 | 5 | 1 | 5 years ago | 1 | April 28, 2016 | 7 | HTML | ||
Create rating inputs easily | ||||||||||
Heartrate | 73 | 10 months ago | 1 | mit | C# | |||||
Bluetooth heart rate monitor | ||||||||||
Css Star Rating | 65 | 92 | 5 | 7 months ago | 16 | June 06, 2022 | 9 | mit | SCSS | |
Css Star Rating is a css only star rating lib based on best practice UX/UI methodes. It is written in scss and fully customizable. |
With this directive you can build rating inputs easily.
bower install angular-input-stars
Inject it
angular.module('app', ['angular-input-stars'])
Simple usage
<input-stars max="5" ng-model="YourCtrl.property"></input-stars>
Customize the base, empty, hover, half and full and icon classes via attributes
<input-stars
max="5"
allow-half
icon-base="fa fa-fw"
icon-empty="fa-star-o"
icon-half="fa-star-half-o"
icon-full="fa-star"
icon-hover-full="fa-star"
ng-model="YourCtrl.property"
></input-stars>
Unlike icon-base, on icon-full, icon-hover and icon-empty you must specify only one class, but that is all you need : ]
Customize or initalize the directive attributes using the ng-attr-{attr}
directive thanks to timkishkin for pointing the need of a better clarification
<input-stars
ng-model="App.prop1"
max="5"
ng-attr-readonly="{{ enableReadonly || false }}"
ng-attr-icon-empty="{{ enableReadonly ? 'fa-twitter' : 'fa-circle-o' }}"
ng-attr-icon-full="{{ enableReadonly ? 'fa-cog' : 'fa-twitter' }}"
></input-stars> value: {{App.prop1}}
Add a $rootScope function that will be called each time after a star is clicked by using the optional onStarClick attribute (thanks to @whitef0x0)
<input-stars max="5" on-star-click="runMyFunction()" ng-model="YourCtrl.property"></input-stars>
Customize the list class to whatever you want
<input-stars max="5" list-class="shiny-list" ng-model="YourCtrl.property"></input-stars>
Make it readonly, thanks to @anjorinjnr
<input-stars max="10" list-class="shiny-list" ng-model="YourCtrl.property" readonly ></input-stars>
<input-stars max="10" list-class="shiny-list" ng-model="YourCtrl.property" readonly="true" ></input-stars>
<input-stars max="10" list-class="shiny-list" ng-model="YourCtrl.property" readonly="readonly" ></input-stars>
Allow it to have half-icon painted, thanks to @brunoksato
<input-stars max="10" list-class="shiny-list" ng-model="YourCtrl.property" allow-half ></input-stars>
The .css file is optional and it is a bootstrap for customizations.
This directive uses FontAwesome as fallback if you don't specify any icon class.
MIT License Rafael Mello Campanari