Angular Input Stars

Alternatives To Angular Input Stars
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Raty2,332
4 months ago60mitJavaScript
:star2: Raty - A Star Rating Plugin
Smileyrating1,003
3 years ago1June 18, 20197apache-2.0Java
SmileyRating is a simple rating bar for android. It displays animated smileys as rating icon.
React Native Star Rating735220362 years ago11September 10, 201848JavaScript
A React Native component for generating and displaying interactive star ratings
Edstarrating425
716 years ago3March 24, 201518Objective-C
Configurable Star Rating control for iOS and OSX
React Star Rating Component322360334 years ago10March 04, 201819mitJavaScript
Basic React component for star (or any other icon based) rating elements
Vue Rate213
9a year ago26May 16, 20221mitVue
Rate component for Vue
Material Ui Rating904026 months ago21August 14, 20191mitJavaScript
Rate something with style.
Angular Input Stars76515 years ago1April 28, 20167HTML
Create rating inputs easily
Heartrate73
10 months ago1mitC#
Bluetooth heart rate monitor
Css Star Rating659257 months ago16June 06, 20229mitSCSS
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.
Alternatives To Angular Input Stars
Select To Compare


Alternative Project Comparisons
Readme

Welcome

With this directive you can build rating inputs easily.

Installation via bower

bower install angular-input-stars

Inject it

angular.module('app', ['angular-input-stars'])

Use

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.

Dependencies

This directive uses FontAwesome as fallback if you don't specify any icon class.

License

MIT License Rafael Mello Campanari

Popular Rating Projects
Popular Icon Projects
Popular User Interface Components Categories

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Html
Icons
Rating