nativescript / nativescript-sdk-examples-js Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
How to support popup window when we clicked some link inside the webview, currently it seems like nothing happen when try to click popup link.
I have read the docs
But I can't find out how to import the FlexboxLayout
from module
I tried
const FlexboxLayout = require("tns-core-modules/ui/layouts/flexbox-layout").FlexboxLayout;
and it crashed when I called let fbl = new FlexboxLayout()
Any idea?
I change the property fullscreen and added a new property ios like below in nativescript-sdk-examples-js/app/ns-ui-category/modal-view/basics/basics-page.js:
function openModal(args) {
const mainView = args.object;
const option = {
context: { username: "test_username", password: "test" },
closeCallback: (username, password) => {
// Receive data from the modal view. e.g. username & password
alert(Username: ${username} : Password: ${password}
);
},
fullscreen: false,
ios: {
presentationStyle: 7,
height: 100,
width: 50
}
};
mainView.showModal(modalViewModule, option);
}
But, I find that presentationStyle, height and width don't work. The modal view is almost full screen.
isUserInterationEnabled property is not working for android. It is working for IOS.
Hi,
I navigated to this page thinking it would show me examples in vanilla Javascript. However, the example uses typescript
When i take the first example in https://docs.nativescript.org/ui/components/tabs the home TabStripItem is active and not the account item. Can someone help me out?
As I see the following links in README.md are invalid: "NativeScript Core Cookbook", "articles", "read the documentation".
In both the places where the doc talks of the fromObjectRecursive method, it says: "This function will create new Observable for each nested object (expect arrays and functions) from supplied JavaScript object." Ummm, is that actually "This function will create new Observable for each nested object (except arrays and functions) from supplied JavaScript object."? That's a whole different thing. If it DOES actually "expect" to see arrays and functions in the supplied object, could you please make that clearer?
Hi folks,
In my project I wanted to change the icon of a tab to a multi-colored one (well, essentially one color and a red dot), when I noticed that the icon instead became monochrome, and reflected the tabTextColor
(or selectedTabTextColor
) color set. This is on iOS at least.
Basically by default, on iOS, tabTextColor
and selectedTabTextColor
affect text color and icon color. Setting the iosIconRenderingMode
property on TabView
to alwaysOriginal
changes this behavior, so that only text is affected. (In this case it's up to the developer to change the icon themselves when selected of course.)
I think it would be nice to make this behaviour explicit in the documentation.
Will you help me? I'm trying to build two applications.
One application requires to create a series of timers.
The other application requires communication with a server to exchange coordinates.
Both applications must work when the app goes in the background, when the user locks the screen, or when the screen goes black.
Could someone please confirm whether setTimeout
and setInterval
work in the background for iOS and Android?
I'm aware that android might required a permission to do so.
I'm aware that iOS requires adding keys/values in the Info. list to do so.
If they do but require extra work, could a link to a tutorial be included? Thank you
I don't know if it's OK to put all minor docs problems in one Issue or not.
Here are some problems that I didn't know how to handle:
icon
property in text or example in Basics section (see files).The current behavior is that all examples are ordered alphabetically based on their folder names. This is fine for the moment where 'Basics' and 'Code-Behind' are very high alphabetically, but if I want to add an example starting with 'Android-...' or 'Angular-...' it's not fine.
As a proposal, this can be done in the metadata.md file below the '---' line like so: 'example-order: basics, code-behind, android-example...'. If there is an example that is not mentioned in this list or there is no list, they should be ordered alphabetically.
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.