Windframe Import Update is finally here.


Angular Bootstrap Rating

Angular Bootstrap 5-star rating plugin can be used to allow the users to share their opinion about the product, documentation page, photo and more.

Importing the Contrast Angular Bootstrap Rating Module

To use the Contrast Angular Bootstrap Rating component in your project you need to import RatingModule.

import {RatingModule } from 'cdbangular';

Default Rating

Angular Bootstrap Rating Default

<CDBRating [iconRegular]=true></CDBRating>
<CDBRating [iconFaces]=true fillClass='black-text' [iconRegular]=true></CDBRating>
<CDBRating [feedback]=true></CDBRating>

API Reference: Contrast Angular Bootstrap Rating Props

This section will build on your information about the props you get to use with the Contrast Angular Bootstrap Rating component. You will find out what these props do, their default values, and how you would use them in your code.

The table below lists other prop options of the CDBRating.

containerClassStringAdds custom classes to the containercontainerClass="myClass"
dataArray[{tooltip: 'Very Bad'}, {tooltip: 'Poor'}, {tooltip: 'Ok'}, {tooltip: 'Good'},{tooltip: 'Excellent'}]Sets custom data of icon property.data=[{tooltip: 'Very Bad'}, {tooltip: 'Poor'}, {tooltip: 'Ok'}, {tooltip: 'Good'},{tooltip: 'Excellent'}]
feedbackBooleanfalseIf set to true, clicking a star will trigger a popover with a textareafeedback=true
fillClassStringfiveStarsSets custom classes for filled iconsfillClass="red-text"
iconClassStringSets default icon's classesiconClass="blue-text"
iconFacesBooleanfalseChanges icon star for icon faceiconFaces=true
iconSizeString1xSets size of iconsiconSize="2x"
iconRegularBooleanfalseSets regular style of iconsiconRegular=true
submitHandlerfunctionReturns feedback form valuesummitHandler={handleSubmit}

Trying to build out all user interfaces and components for your website or web app from scratch can become a very tedious task. A huge reason why we created Contrast Bootstrap to help reduce the amount of time we spend doing that, so we can focus on building some other aspects of the project. Contrast Bootstrap PRO consists of a UI Kit featuring over 10000+ component variants. Together with a template of 5 admin dashboards and 23+ additional multipurpose pages template for building almost any type of website or web app. You can view a demo and learn more about Contrast by clicking here.Download the free react template


Contrast Bootstrap PRO was built using the most popular CSS framework Bootstrap to help build your next landing, admin SAAS, prelaunch etc project with a clean, prebuilt and well documented template and UI components.Learn more about Contrast