1.0.2 • Published 6 years ago

@coturiv/ionic-rating v1.0.2

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

@coturiv/ionic-rating

A lightweight Ionic 4 Rating Component 🎉.

npm version

Install:

npm i @coturiv/ionic-rating

or

yarn add @coturiv/ionic-rating

Usage:

.ts

import { IonicRatingModule } from '@coturiv/ionic-rating';

.html

<rating [(ngModel)]="rate" icon="star" color="tertiary" (ratingChange)="newRate=$event"></rating>
Properties:
NameTypeDescription
maxRateNumber ( 5 or 10)Optional, default 5. If maxRate is 10, star icon is only available.
iconstring (star or heart)Optional, default star. But most ionicons(which include outline-icons) can work though.
colorstringOptional. All Ionic theme colors.
Output:
NameTypeDescription
ratingChangeFunctionEmits selected rate.
1.0.2

6 years ago

1.0.1

6 years ago

1.0.0-rc.1

6 years ago

1.0.0

6 years ago

1.0.0-rc.0

6 years ago