nativescript-angular

RadlistView - how to use dataPopulated event

廉价感情. 提交于 2021-02-11 17:20:57
问题 Anyone knows how to use dataPopulated event for RadListView? I searched everywhere, but couldn't find an example of how to implement it. My RadListView HTML is as follows: <RadListView [items]="contacts" #contactsListView [groupingFunction]="myGroupingFunc" [sortingFunction]="mySortingFunc" [filteringFunction]="myFilteringFunc" (dataPopulated)="dataPopulated($event)"> <ng-template tkListItemTemplate let-item="item" let-index="index"> <ns-contacts-item [item]="item" [index]="index" (tap)=

How to edit NativeScript-Angular RadDataForm UIStepper on iOS?

让人想犯罪 __ 提交于 2021-02-10 14:14:55
问题 In a NativeScript-Angular app, I’m trying to style a RadDataForms TKPropertyEditor . For the Stepper Editor on iOS I want do increase the distance between the controls and the displayed value, but I can't find a way to access them. I'm using nativescript-ui-dataform: 4.0.0 . <TKEntityProperty tkDataFormProperty name="grade" displayName="Bewertung (1 – 10)" index="1"> <TKPropertyEditor tkEntityPropertyEditor type="Stepper"> <TKPropertyEditorParams tKEditorParams minimum="1" maximum="10" step=

NativeScript angular nativeView undefined

旧时模样 提交于 2021-01-29 21:40:44
问题 I am trying to get StackLayout nativeView from NativeScript Angular but always returning undefined . I tried like this: html: <StackLayout id="stackLayout" #stackLayout> </StackLayout> TS: ngAfterViewInit() { setTimeout(() => { let container: StackLayout = this.page.getViewById("stackLayout"); console.log(container.nativeView); console.log(this.stackLayout.nativeElement.nativeView); }, 100) } Please give me suggestion. 回答1: Use the loaded event of the View itself which ensures the nativeView

ERROR in The target entry-point “@nativescript/angular” has missing dependencies on running a Nativescript Angular 9 project

感情迁移 提交于 2021-01-29 16:42:42
问题 I am receiving an error for a working Nativescript Angular 9 project which we started 2 weeks back . The error is like this : ERROR in The target entry-point "@nativescript/angular" has missing dependencies: - @nativescript/core/ui/layouts/layout-base We are working on a sharing code base which we were able to run both web code and native code simultaneously without any issues till last day. Today when i tried running the project for web application, i am getting this error. On googling , got

Remote image on NavigationButton in Nativescript/Angular

对着背影说爱祢 提交于 2021-01-28 12:10:34
问题 I want to put the user's avatar on the left of my app's header. It works fine in IOS, but it doesn't work in android. I tried to do this: <NavigationButton [icon]="customImage" color="#a81b38" (tap)="toggleSideDrawer()" *ngIf="isAndroid"> <StackLayout verticalAlignment="center"> <Label id="avatarImg" height="45" width="45" borderRadius="50" backgroundColor="#eeeeee"></Label> </StackLayout> </NavigationButton> but I get an error during compilation. The custom image is a remote image (https:/

nativescript ios app crashes - attempting to change the getter of an unconfigurable property

自作多情 提交于 2021-01-02 17:50:21
问题 I created a directive to disable the context menu on android and ios app in Nativescript. import { Directive, OnInit, OnDestroy, ElementRef, Renderer2 } from "@angular/core"; import { isIOS } from "tns-core-modules/platform"; import * as utils from "tns-core-modules/utils/utils"; import { EventData } from "tns-core-modules/data/observable"; import { TextField } from "tns-core-modules/ui/text-field"; declare var UITextField, CGRectMake, android; if (isIOS) { UITextField.prototype.

nativescript ios app crashes - attempting to change the getter of an unconfigurable property

穿精又带淫゛_ 提交于 2021-01-02 17:36:55
问题 I created a directive to disable the context menu on android and ios app in Nativescript. import { Directive, OnInit, OnDestroy, ElementRef, Renderer2 } from "@angular/core"; import { isIOS } from "tns-core-modules/platform"; import * as utils from "tns-core-modules/utils/utils"; import { EventData } from "tns-core-modules/data/observable"; import { TextField } from "tns-core-modules/ui/text-field"; declare var UITextField, CGRectMake, android; if (isIOS) { UITextField.prototype.

nativescript ios app crashes - attempting to change the getter of an unconfigurable property

廉价感情. 提交于 2021-01-02 17:35:27
问题 I created a directive to disable the context menu on android and ios app in Nativescript. import { Directive, OnInit, OnDestroy, ElementRef, Renderer2 } from "@angular/core"; import { isIOS } from "tns-core-modules/platform"; import * as utils from "tns-core-modules/utils/utils"; import { EventData } from "tns-core-modules/data/observable"; import { TextField } from "tns-core-modules/ui/text-field"; declare var UITextField, CGRectMake, android; if (isIOS) { UITextField.prototype.