Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49296

Ionic4-star-rating

$
0
0

@melwinVincent wrote:

I just created a custom star rating component for ionic-4 projects

You can give your custom icons, custom color, custom font-size and also make it read only. Can use it multiple times in a single page/multiple pages and get the changed rating in the parent component Can also be used inside the <form> component

Easy to integrate with your ionic-4 projects.

    <ionic3-star-rating #rating
        activeIcon = "ios-star"
        defaultIcon = "ios-star-outline"
        activeColor = "#488aff" 
        defaultColor = "#f4f4f4"
        readonly="false"
        rating="3"
        fontSize = "32px"
        (ratingChanged)="logRatingChange($event)">
    </ionic3-star-rating>

for detailed documentation :

npm link

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49296

Trending Articles