Angularjs Bar Rating Component and demo
In this post we will show you Angularjs Bar Rating Component and demo, hear for Angularjs Bar Rating Component and demo we will give you demo and example for implement.
Hear is Git hub like for Download, Demo and for information(Read More), it will help you into development and implement for Angularjs Bar Rating Component and demo. This link of git will give you document, instruction, installation and other information.
Installation for Angularjs Bar Rating
Install it with npm
npm install --save ngx-bar-rating
SystemJS for Angularjs Bar Rating
If you are using SystemJS, you should also adjust your configuration to point to the UMD bundle. In your systemjs config file, map needs to tell the System loader where to look for ngx-bar-rating:
// set map
map: {
'ngx-bar-rating': 'node_modules/ngx-bar-rating/bundles/ngx-bar-rating.umd.js',
}
Rating options (inputs):
- [rate]: Current rating. Can be a decimal value like 3.14, default undefined.
- [max]: Maximal rating that can be given using this widget, default 5
- [theme]: Theme class. default default, see available themes.
- [readOnly]: A flag indicating if rating can be updated, default false
- [showText]: Display rating title if set, otherwise display rating value, default false.
- [required]: A flag indicating if rating is required for form validation. default false.
- (hover): An event fired when a user is hovering over a given rating.
- [titles]: Titles array. array length should be equal to the max value, each index represents the rating title, default [].
- (rateChange): An event fired when a user selects a new rating.
- [disabled]: A flag indicating if rating is disabled. works only with forms, default false.
- Event’s payload equals to the rating of the last item being hovered over.
- Event’s payload equals to the newly selected rating.
- (leave): An event fired when a user stops hovering over a given rating.
- Event’s payload equals to the rating being hovered over.
YOU ALSO LIKE RELATED POSTS
| AngularJS Insert Update Delete using php mysql | http://www.onlinecode.org/angularjs-insert-update-delete-using-php-mysql/ |
| Angular Disqus Module demo and example | http://www.onlinecode.org/angular-disqus-module-demo-example/ |
| SoundManager2 – A Music Player using AngularJs | http://www.onlinecode.org/soundmanager2-music-player-using-angularjs/ |
| ng2-adsense – Angular Adsense Component | http://www.onlinecode.org/ng2-adsense-angular-adsense-component/ |
| Angular Disqus Module demo and example | http://www.onlinecode.org/angular-disqus-module-demo-example/ |
Hope this code and post will helped you for implement Angularjs Bar Rating Component and demo. if you need any help or any feedback give it in comment section or you have good idea about this post you can give it comment section. Your comment will help us for help you more and improve onlincode. we will give you this type of more interesting post in featured also so, For more interesting post and code Keep reading our blogs onlincode.org