nativescript

Upload File in Nativescript Webview with iframe

回眸只為那壹抹淺笑 提交于 2019-12-02 09:03:28
问题 My problem is I have one webview Containing Dynamic Form or form which is created dynamic with WP Builders and that is included in iframe and i want to select file from application in nativescript this will not allow me select file. So I want to try How to load files into webview in native script http://shripalsoni.com/blog/nativescript-webview-native-bi-directional-communication/ But problem is form is dynamic is there any script which will detect click event of file input inside frame and

Installed latest JDK 1.8.0, but my Javac -version still shows an older version (Windows 7 - 64)

≯℡__Kan透↙ 提交于 2019-12-02 08:42:20
I've been attempting to install NativeScript with Angular with this tutorial for the past two days, and I keep running into problems surrounding the Android SDK not installing correctly and freezing, and finally re-installing the latest JDK and JVE before attempting to install Android Studio. As I researched the problem I think I found the culprit: When I run Javac -version I keep getting an older version of JDK, it states: javac 1.6.0_45 However I have the latest version of Jdk 1.8.0_102. I researched the problem, but only found either complex solutions invilving the variable path, or MAC

Correct way to populate listView with object items?

允我心安 提交于 2019-12-02 08:00:53
In my NativeScript project, I am trying to fill a ListView with instances of a custom object (defined as an interface). But the output (on a android emulator) is quite strange : I am getting "[object object ... object]" spawned across multiple lines, instead of getting each instance name content, as I defined. This is my component.ts : import {Component} from "@angular/core"; interface FileItem { isDirectory:boolean; name:String; } @Component({ moduleId: module.id, selector: 'file-explorer', templateUrl: 'component.html', styleUrls: ['component.css'] }) export class FileExplorerComponent {

Installed latest JDK 1.8.0, but my Javac -version still shows an older version (Windows 7 - 64)

落爺英雄遲暮 提交于 2019-12-02 07:55:53
问题 I've been attempting to install NativeScript with Angular with this tutorial for the past two days, and I keep running into problems surrounding the Android SDK not installing correctly and freezing, and finally re-installing the latest JDK and JVE before attempting to install Android Studio. As I researched the problem I think I found the culprit: When I run Javac -version I keep getting an older version of JDK, it states: javac 1.6.0_45 However I have the latest version of Jdk 1.8.0_102. I

Nativescript behavior of the '< Go Back' button

梦想与她 提交于 2019-12-02 07:18:46
I've got the following ActionBar definition <ActionBar class="action-bar" title="Settings"> <NavigationButton text="Go Back" android.systemIcon="ic_menu_back" tap="onBackTap"/> </ActionBar> The Android version does get called. In the iOS version - the onBackTap method is never called. Also it seems in iOS version, even if the NavigationButton entry is not there, {N} inserts one automatically. UPDATE: Indeed, it appears that the NavigationButton in iOS can only be used to navigate back and can not be overridden with tap action. Reference from the NativeScript documentation In iOS, the back

Auto scroll to Bottom

一曲冷凌霜 提交于 2019-12-02 06:42:46
I am working on application with chat screen. But as normal screen it starts scrolling from top to bottom. But its should be from bottom to top. The application is in Telerik Nativescript platform. View.xml <ScrollView row="0" col="0"> <StackLayout class="history-content-area"> <Repeater items="{{messageHistory}}"> <Repeater.itemTemplate> <StackLayout> <!-- ITEMS GO HERE --> </StackLayout> </Repeater.itemTemplate> </Repeater> </StackLayout> </ScrollView> I need help in above code how can i scroll to bottom automatically on page load ? Let me know if you need javascript code. Thanks in advance.

Wiring up Google Maps Nativescript plugin with Angular 2

流过昼夜 提交于 2019-12-02 06:18:55
问题 I'm trying to use the Google Maps plugin for Nativescript (https://github.com/dapriett/nativescript-google-maps-sdk) with Angular 2 and the {N}-Angular router. I have it working in just Nativescript but once I add in Angular 2 and the router I'm failing to get the map to show up in the UI. Since a <Page> tag doesn't go into an Angular2 {N} component template, I can't use the xmlns:maps="nativescript-google-maps-sdk" namespace on the <Page> to instantiate the <maps:mapView> The {N} component

Load Local HTML/JavaScript/CSS Inside NativeScript App

回眸只為那壹抹淺笑 提交于 2019-12-02 04:43:13
问题 With a NativeScript iOS and Android app using Angular, how do I load, inside of a WebView, a locally stored html file that has JS and CSS references? I am able to display the WebView but I get the error that the file is not found because I do not know where to point the src from my component. Currently I have the files inside src/assets and in there is the index.html Is there a more appropriate place to store these files within the app? Is there a better way to display this than a WebView?

TabView vs SegmentedBar

不问归期 提交于 2019-12-02 04:25:11
I am creating SegmentedBar in native script. I am able to create segments but I am not able to add Label to segment view. <Page xmlns="http://www.nativescript.org/tns.xsd" loaded="pageLoaded"> <StackLayout> <SegmentedBar> <SegmentedBar.items> <SegmentedBarItem title="Segment 1"> <SegmentedBarItem.view> <Label text=" I am in segment bar 1"/> </SegmentedBarItem.view> </SegmentedBarItem> <SegmentedBarItem title="Segment 2"> <SegmentedBarItem.view> <Label text=" I am in segment bar 2"/> </SegmentedBarItem.view> </SegmentedBarItem> </SegmentedBar.items> </SegmentedBar> </StackLayout> </Page> What

NativeScript: Disable all controls while ActivityIndicator is shown

早过忘川 提交于 2019-12-02 04:23:49
Lets say there is a login page with username\password TextFields and login Button. When the button is pressed a request is set to a server and ActivityIndicator is shown. Currently I put StackLayout on top of all other controls not to give the user a possibility to click on them while processing the request. But in some cases TextField stays focused and the user can type there. I'm already using a component to wrap all TextFields to show validation errors: @Component({ selector: "field", template: "<grid-layout><ng-content></ng-content>...</grid-layout>" }) export class FieldComponent {