0.2.5 • Published 3 years ago

ngx-rating-stars v0.2.5

Weekly downloads
96
License
-
Repository
-
Last release
3 years ago

ngx-rating-stars

https://ibb.co/K9y7725

Installation

npm install ngx-rating-stars@latest

Usage

ngModule

import { NgxRatingStarsModule } from 'ngx-rating-stars'

@NgModule({
    ...
    imports: [
		...
        NgxRatingStarsModule
        
    ]
})

angular.json

"build": {
	...
	"assets": [
		{
			"glob": "**/*",
			"input": "./node_modules/ngx-rating-stars/images",
			"output": "./assets/images"
		}
	]
}

template

<ngx-rating-stars 
	[rating]="rating" 
	[style]="ratingStyle" 
	[showRatingInNumericFormat]="true">
</ngx-rating-stars>

component

rating = {
	value:3.6,
	count:12
}

ratingStyle = {
	starsStyle: {'height' : '22px', 'width' : '22px'},
	ratingStyle: {'font-size' : '18px'},
	countStyle: {'font-size' : '14px'}
}

The object rating has the value of rating and the count of all ratings (12 votes) proprieties. The object ratingStyle has informations for styles.

Demo

https://stackblitz.com/github/AndreaDiCioccio/ngx-rating-stars-demo

0.2.3

3 years ago

0.2.2

3 years ago

0.2.5

3 years ago

0.2.4

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.8

3 years ago

0.1.9

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.5

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.3

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago