Skip to content
NativeScript star ratings UI component plugin.
TypeScript Shell Ruby
Branch: master
Clone or download
triniwiz Merge pull request #4 from Alampalli-Yeshwanth/master
adding ability to make rating bar as indicator (not-editable)
Latest commit dea3131 Jan 7, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github V1 Dec 29, 2017
demo adding ability to make rating bar as indicator (not-editable) Jan 3, 2018
publish V1 Dec 29, 2017
src adding ability to make rating bar as indicator (not-editable) Jan 3, 2018
.gitignore V1 Dec 29, 2017
.travis.yml Update .travis.yml Dec 30, 2017
LICENSE V1 Dec 29, 2017
README.md updated README Jan 3, 2018
tslint.json V1 Dec 29, 2017

README.md

NativeScript Star Ratings

npm npm Build Status

Installation

tns plugin add nativescript-star-ratings

Configuration

IMPORTANT: Make sure you include xmlns:ui="nativescript-star-ratings" on the Page element

<ui:StarRating emptyBorderColor="white" emptyColor="white" filledBorderColor="black" filledColor="red" value="2" max="5"/>

Angular

import { registerElement } from 'nativescript-angular/element-registry';
registerElement('StarRating', () => require('nativescript-star-ratings').StarRating);
<StarRating emptyBorderColor="white" emptyColor="white" filledBorderColor="black" filledColor="red" value="{{value}}" max="{{max}}" isindicator="false"></StarRating>

API

Properties

Property Default Type Required Description
emptyBorderColor blue string
IOS only
emptyColor white string
filledBorderColor blue string
IOS only
filledColor blue string
value 0 number
max 5 number
isindicator false boolean
Android only

ScreenShots

IOS Android
IOS Android

TODO

  • Custom images
You can’t perform that action at this time.