All Projects → MurhafSousli → Ngx Bar Rating

MurhafSousli / Ngx Bar Rating

Licence: mit
Angular Bar Rating

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to Ngx Bar Rating

Python Progressbar
Progressbar 2 - A progress bar for Python 2 and Python 3 - "pip install progressbar2"
Stars: ✭ 682 (+367.12%)
Mutual labels:  bar, rate
Smart App Rate
An Android library that encourages users to rate the app on the Google Play.
Stars: ✭ 609 (+317.12%)
Mutual labels:  rating, rate
Material-Smart-Rating
😍⭐⭐Material Smart Rating App - An Android library that encourages users to rate the app on Google Play.⭐⭐😘
Stars: ✭ 30 (-79.45%)
Mutual labels:  rating, rate
Laravel Likeable
Rate Eloquent models with Likes and Dislikes in Laravel. Development moved to Laravel Love package!
Stars: ✭ 95 (-34.93%)
Mutual labels:  rating, rate
Laravel Reactions
Laravel reactions package for implementing reactions (eg: like, dislike, love, emotion, etc) on Eloquent models.
Stars: ✭ 58 (-60.27%)
Mutual labels:  rating, rate
Laravel Love
Add Social Reactions to Laravel Eloquent Models. It lets people express how they feel about the content. Fully customizable Weighted Reaction System & Reaction Type System with Like, Dislike and any other custom emotion types. Do you react?
Stars: ✭ 822 (+463.01%)
Mutual labels:  rating, rate
rating
⭐ A true Bayesian rating system with scope and cache enabled
Stars: ✭ 49 (-66.44%)
Mutual labels:  rating, rate
Laravel Reviewable
Adds a reviewable feature to your laravel app.
Stars: ✭ 57 (-60.96%)
Mutual labels:  stars, rating
Starrate
swift电商五星评价,星星评分控件,支持自定义数量、拖拽、间隔、设置最小星星数等操作
Stars: ✭ 85 (-41.78%)
Mutual labels:  rating, rate
Androidrate
AndroidRate is a library to help you promote your Android app by prompting users to rate the app after using it for a few days.
Stars: ✭ 117 (-19.86%)
Mutual labels:  rating, rate
Pyreclab
pyRecLab is a library for quickly testing and prototyping of traditional recommender system methods, such as User KNN, Item KNN and FunkSVD Collaborative Filtering. It is developed and maintained by Gabriel Sepúlveda and Vicente Domínguez, advised by Prof. Denis Parra, all of them in Computer Science Department at PUC Chile, IA Lab and SocVis Lab.
Stars: ✭ 108 (-26.03%)
Mutual labels:  rating
Android Ratingreviews
Simple star rating system bars, a view similar to the ones seen on Google Playstore. ⭐🌟✨
Stars: ✭ 110 (-24.66%)
Mutual labels:  rating
Western constellations atlas of space
Code, data, and instructions to map every star you can see from Earth
Stars: ✭ 121 (-17.12%)
Mutual labels:  stars
Bartinter
Dynamically changes status bar style depending on content behind it
Stars: ✭ 1,687 (+1055.48%)
Mutual labels:  bar
Melonbar
A hackable bar/panel for X written in Go.
Stars: ✭ 103 (-29.45%)
Mutual labels:  bar
Node Currency Swap
Currency Exchange Rates library for nodejs
Stars: ✭ 119 (-18.49%)
Mutual labels:  rate
Awesome Go With Stars
Awesome-go list with stars. Automatically updated
Stars: ✭ 103 (-29.45%)
Mutual labels:  stars
Vue Ellipse Progress
A Vue.js component to create beautiful animated circular progress bars
Stars: ✭ 101 (-30.82%)
Mutual labels:  bar
Immersionbar
android 4.4以上沉浸式状态栏和沉浸式导航栏管理,适配横竖屏切换、刘海屏、软键盘弹出等问题,可以修改状态栏字体颜色和导航栏图标颜色,以及不可修改字体颜色手机的适配,适用于Activity、Fragment、DialogFragment、Dialog,PopupWindow,一句代码轻松实现,以及对bar的其他设置,详见README。简书请参考:http://www.jianshu.com/p/2a884e211a62
Stars: ✭ 10,030 (+6769.86%)
Mutual labels:  bar
Ratemyapp
This plugin allows to kindly ask users to rate your app if custom conditions are met (eg. install time, number of launches, etc...).
Stars: ✭ 143 (-2.05%)
Mutual labels:  rating

Angular Bar Rating

Minimal, light-weight Angular ratings.

npm npm npm Build Status npm


Table of Contents

Installation

Install it with npm

npm i ngx-bar-rating

Basic usage:

Import BarRatingModule in the root module

import { BarRatingModule } from "ngx-bar-rating";

@NgModule({
  imports: [
    // ...
    BarRatingModule
  ]
})

In your template

<bar-rating [(rate)]="rate" [max]="5"></bar-rating>

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

  • [readOnly]: A flag indicating if rating can be updated, default false

  • [theme]: Theme class. default default, see available themes.

  • [showText]: Display rating title if set, otherwise display rating value, default false.

  • [titles]: Titles array. array length should be equal to the max value, each index represents the rating title, default [].

  • [required]: A flag indicating if rating is required for form validation. default false.

  • [disabled]: A flag indicating if rating is disabled. works only with forms, default false.

  • (rateChange): An event fired when a user selects a new rating.

    Event's payload equals to the newly selected rating.

  • (hover): An event fired when a user is hovering over a given rating.

    Event's payload equals to the rating being hovered over.

  • (leave): An event fired when a user stops hovering over a given rating.

    Event's payload equals to the rating of the last item being hovered over.

Movie rating example

<bar-rating [(rate)]="rate" [max]="4" [theme]="'movie'" [showText]="true"
 [titles]="['Bad', 'Mediocre' , 'Good', 'Awesome']"></bar-rating>

It can be used with angular forms and reactive forms, for example:

<form #form="ngForm">
  <bar-rating name="rating" [(ngModel)]="formRating" [max]="4" required disabled></bar-rating>
</form>
<p>form is valid: {{ form.valid ? 'true' : 'false' }}</p>
<pre>{{ formRating }}</pre>

Predefined themes

Add the rating theme either in index.html

<link rel="stylesheet" href="../node_modules/ngx-bar-rating/themes/br-default-theme.css"/>

Or in the global style style.scss (recommended)

  • Pure css stars (default) [theme]="'default'"
@import '~ngx-bar-rating/themes/br-default-theme'
  • Bootstrap stars [theme]="'bootstrap'"
@import '~ngx-bar-rating/themes/br-bootstrap-theme';
  • Fontawesome stars [theme]="'fontawesome'"
@import '~ngx-bar-rating/themes/br-fontawesome-theme';
  • Fontawesome-o stars [theme]="'fontawesome-o'"
@import '~ngx-bar-rating/themes/br-fontawesome-o-theme';
  • Horizontal bars [theme]="'horizontal'"
@import '~ngx-bar-rating/themes/br-horizontal-theme';
  • Vertical bars [theme]="'vertical'"
@import '~ngx-bar-rating/themes/br-vertical-theme';
  • Custom stars [theme]="'stars'"
@import '~ngx-bar-rating/themes/br-stars-theme';
  • Movie rating [theme]="'movie'"
@import '~ngx-bar-rating/themes/br-movie-theme';
  • Square rating [theme]="'square'"
@import '~ngx-bar-rating/themes/br-square-theme';

Rating style can be easily customized, check the classes used in any theme and add your own css.

You can also do the same for forms classes such as untouched, touched, dirty, invalid, valid ...etc

If you have a nice rating style you would like to share, prupose your theme and I will include it in the package.

Issues

If you identify any errors in this component, or have an idea for an improvement, please open an issue. I am excited to see what the community thinks of this project, and I would love your input!

Author

Murhaf Sousli

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].