1.0.0 • Published 6 years ago

nativescript-star-ratings-ext v1.0.0

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

#ATENTION. DOES NOT INSTALL HIS LIBRARY. THIS IS A TEST PROJECT#. DOWNLOAD THE RIGHT LIBRARY

#FORKED FROM:

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

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

ScreenShots

IOSAndroid
IOSAndroid

TODO

  • Custom images