nericode / nativescript-tooltip Goto Github PK
View Code? Open in Web Editor NEWNativeScript Tooltip - Android & iOS
License: Apache License 2.0
NativeScript Tooltip - Android & iOS
License: Apache License 2.0
If I open a modal then try to display the tooltip in the modal, it doesn't appear.
Android and iPhone emulator and device
Create an element that shows the tooltip. Try the tooltip without a modal - it works. Load the element in a modal, then try the tooltip - it doesn't work.
There's an error on iOS that prevents the show()
method from displaying the tooltip on iOS:
ReferenceError: color_1 is not defined
at TooltipNs.push.../node_modules/nativescript-tooltip-ns/tooltip-ns.js.TooltipNs.show (file: node_modules/nativescript-tooltip-ns/tooltip-ns.ios.js:11:0)
at SignupComponent.showTooltipWithText (file: src/app/auth/components/signup/signup.component.ts:260:17)
at file: src/app/auth/components/signup/signup.component.ts:251:11
at ZoneDelegate.push.../node_modules/@nativescript/zone-js/zone-nativescript.js.ZoneDelegate.invoke (file: node_modules/@nativescript/zone-js/zone-nativescript.js:388:0)
at Object.onInvoke (file: node_modules/@angular/core/fesm2015/core.js:27486:0)
at ZoneDelegate.push.../node_modules/@nativescript/zone-js/zone-nativescript.js.ZoneDelegate.invoke (file: node_modules/@nativescript/zone-js/zone-nativescript.js:387:0)
at Zone.push.../node_modules/@nativescript/zone-js/zone-nativescript.js.Zone.run (file: node_modules/@nativescript/zone-js/zone-nativescript.js:138:0)
at file: node_modules/@nativescript/zone-js/zone-nativescript.js:883:0
at ZoneDelegate.push.../node_modules/@nativescript/zone-js/zone-nativescript.js.ZoneDelegate.invokeTask (file: node_modules/@nativescript/zone-js/zone-nativescript.js:421:0)
at Object.on<…>
Simply call the show()
method providing a textColor
for iOS:
this.tooltip.show({
...
ios: {
...
textColor: 'black'
}
});
Android
Android version 9 and SDK version 28.
Tested on emulator as well as device
Native script version - 7.0.8
@nativescript/android": "7.0.0",
"@nativescript/ios": "7.0.0",
nativescript-tooltip-ns": "^1.0.3
I am using nativescript-tooltip-ns plug-in in my application. It is working fine for iOS but tooltip is cutting in android devices. I am attaching a screenshot of the problem here. I had tried all directions but problem persists in all of them.
@nericode
I need to have iOS tooltip color to black and text color to white.
Please advise.
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.