triniwiz / nativescript-star-ratings Goto Github PK
View Code? Open in Web Editor NEWNativeScript star ratings UI component plugin.
License: Apache License 2.0
NativeScript star ratings UI component plugin.
License: Apache License 2.0
Please, ensure your title is less than 63 characters long and starts with a capital
letter.
tns --version
to fetch it)node_modules/tns-core-modules/package.json
file in your project)"tns-android"
and "tns-ios"
properties in the package.json
file of your project)package.json
file of yourDescribe the steps to reproduce it.
Is there any option to fix the value of star
checked
checked
how can i modify the size of the stars
just use it as the instructions says it should be used
Please, ensure your title is less than 63 characters long and starts with a capital
letter.
I want the max value to be 5 but when I plugged the max value onto the element 8 stars show up in the display, my platform is Android and I'm using javascript
-CLI: 3.4.0
-Runtimes tns-android: 3.4.0
tns-ios: 3.4.0
-plugins: "dependencies": {
"nativescript-accordion": "^5.0.3",
"nativescript-awesome-loaders": "^1.2.1",
"nativescript-dom": "^2.0.0",
"nativescript-drop-down": "^3.2.0",
"nativescript-floatingactionbutton": "^4.1.2",
"nativescript-https": "^1.0.1",
"nativescript-loading-indicator": "^2.4.0",
"nativescript-loading-indicator-new": "^2.1.0",
"nativescript-master-technology": "^1.1.1",
"nativescript-modal-datetimepicker": "^1.0.3",
"nativescript-paypal": "^2.6.9",
"nativescript-pro-ui": "^3.2.0",
"nativescript-reviews": "^1.0.4",
"nativescript-snackbar": "^2.0.0",
"nativescript-sqlite": "^1.1.11",
"nativescript-star-ratings": "^1.0.0",
"nativescript-theme-core": "1.0.4",
"tns-core-modules": "^3.4.0"
},
"devDependencies": {
"babel-traverse": "6.4.5",
"babel-types": "6.4.5",
"babylon": "6.4.5",
"eslint": "4.6.1",
"lazy": "1.0.11",
"nativescript-dev-sass": "1.3.2",
"node-sass": "4.5.3"
}
<Page class="page-content" loaded="onloaded" xmlns:UI="nativescript-reviews" xmlns:ui="nativescript-star-ratings" > <GridLayout rows="*, 60, 60"> <ScrollView> <StackLayout row="0"> <UI:Reviews user="userTap" long="longpressed" reviews="{{ reviews }}" /> </StackLayout> </ScrollView> <StackLayout row="1"> <ui:StarRating value="5" max="5" emptyBorderColor="yellow" emptyColor="white" filledBorderColor="yellow" filledColor="yellow" /> </StackLayout> <StackLayout row="2" orientation="horizontal"> <TextField class="input" hint="write your own review here" id="userReview" /> <Button text="done" /> </StackLayout> </GridLayout> </Page>
i want set editable to false, i just want to display purpose. can help me on this, other than use enabled = false?
Still uses tns-core-modules. Requires upgrading.
Can we use this plugin for native-script core?(and not angular).
I changed emptyBorderColor, emptyColor and filledBorderColor property color's, but anything didn't changed. Border colors looks white. I am using genymotion - Google Nexus 5X - 6.0.0 device.
My code is;
<ui:StarRating horizontalAlignment="center" verticalAlignment="center" id="rating" emptyBorderColor="red" emptyColor="red" filledBorderColor="black" filledColor="red" value="3" max="5" isindicator="false"/>
please, can you help me? Thank you.
hello, i have this error after the update of
https://github.com/evgenyneu/Cosmos
that this is a is a fork of , here is the error, how can i solve?
Xcode build...
/Users/mac/WebstormProjects/xxx/platforms/ios/Pods/Cosmos/Cosmos/CosmosAccessibility.swift:19:29: error: type 'UIAccessibilityTraits' (aka 'UInt64') has no member 'adjustable'
UIAccessibilityTraits.adjustable :UIAccessibilityTraits.none
~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~
/Users/mac/WebstormProjects/xxx/platforms/ios/Pods/Cosmos/Cosmos/CosmosAccessibility.swift:19:63: error: type 'UIAccessibilityTraits' (aka 'UInt64') has no member 'none'
UIAccessibilityTraits.adjustable :UIAccessibilityTraits.none
~~~~~~~~~~~~~~~~~~~~~ ^~~~
/Users/mac/WebstormProjects/xxx/platforms/ios/Pods/Cosmos/Cosmos/StarLayer.swift:55:57: error: type 'CALayerContentsGravity' (aka 'NSString') has no member 'resizeAspect'
imageLayer.contentsGravity = CALayerContentsGravity.resizeAspect
~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~
Command CompileSwift failed with a nonzero exit code
note: Using new build system
note: Planning build
note: Constructing build description
** ARCHIVE FAILED **
Command xcodebuild failed with exit code 65
thank you
when we run the demo, the following error appears and the application not working:
System.err: Error: Building UI from XML. @file:///app/main-page.xml:10:9 System.err: > Module '/data/data/org.nativescript.demo/files/app/nativescript-star-ratings' not found for element 'nativescript-star-ratings:StarRating'. System.err: > com.tns.NativeScriptException: Failed to find module: "/data/data/org.nativescript.demo/files/app/nativescript-star-ratings", relative to: app//
Possible Fix:
File name: star-rantings.android.js, line number 40
emptyDrawable.setColorFilter(new color_1.Color('white').android, android.graphics.PorterDuff.Mode.SRC_ATOP);
Changed to:
emptyDrawable.setColorFilter(new color_1.Color(color).android, android.graphics.PorterDuff.Mode.SRC_ATOP);
The issue was that the color was manually set to white, I just replaced it with the parameter.
Hi guys thanks for this very useful plugin, I am trying to use it in my project but seems like its not customized for Angular 5?
Thanks!
Currently you cannot capture the changed 'current' value. Implementation is commented out, as I am not currently confident on the correct usage for capturing such event.
Hi everybody,
I'm not being able to build anymore iOS cloud build through nativescript sidekick. When installing dependencies, it always return an error
Cosmos
does not specify a Swift version and none of the targets (MyAppName
) integrating it have theSWIFT_VERSION
attribute set. Please contact the author or set theSWIFT_VERSION
attribute in at least one of the targets that integrate this pod.
I tried the following workaround https://medium.com/@championswimmer/setting-swift-version-in-nativescript-6ece09112a46 however I didn't have any success. Actually, checking the POD file inside node_modules folder, I see it already has the same code applied setting SWIFT_VERSION to '4.0'...
I tried to local build in a macOs and I got the same error, but downgrading Cocoapods version to 1.6x worked fine. As I can't tune cloud build to use a specific cocoapod version, I'm following the suggestion of the console and I'm loging this issue here.
Windows10
NodeJs 10.13.0
npm 6.9.0
NS CLI 5.3.1
I have checked and not found any demo app for Nativescript angular example.
I checked.
Please, ensure your title is less than 63 characters long and starts with a capital
letter.
iOS/Android/Both
Android
iOS/Android versions
Android Version 6.0
emulator or device. What type of device?
on both
tns --version
to fetch it)node_modules/tns-core-modules/package.json
file in your project)"tns-android"
and "tns-ios"
properties in the package.json
file of your project)package.json
file of yourusing the link of Nativescript Angular, "https://www.npmjs.com/package/nativescript-star-ratings", I tried to implement start rating on my app.
however, I am not able to get the number of stars which I choose from my app.
Can anyone provide a sample application (working) where i select 3 or 4 stars and i get that value as number on my code behind (lets say on button click).
check
ckeck
Please, ensure your title is less than 63 characters long and starts with a capital
letter.
Any plans to support Android?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.