1.0.0 • Published 6 years ago

nativescript-star-ratings v1.0.0

Weekly downloads
11
License
Apache-2.0
Repository
-
Last release
6 years ago

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}}"></StarRating>

API

Properties

PropertyDefaultTypeRequiredDescription
emptyBorderColorbluestring- IOS only
emptyColorwhitestring-
filledBorderColorbluestring- IOS only
filledColorbluestring-
value0number-
max5number-

ScreenShots

IOSAndroid
IOSAndroid

TODO

  • Custom images
1.0.0

6 years ago

0.1.0

7 years ago