Nativescript: TextField Editable=false, textWrap="true" not working?

Created on 31 Jan 2017  路  8Comments  路  Source: NativeScript/NativeScript

android question

Most helpful comment

@dlucidone

Instead of _TextField_ use TextView
e.g.

<TextView [(ngModel)]="longName"  editable="false" textWrap="true"></TextView>

All 8 comments

Hey, @dlucidone I have tested text-field with both options (Editable=false, textWrap="true" ) and it works as expected on my side. Here you can find a sample test application that demonstrates the behaviour.

Please provide additional information for that issue - including code snippet demonstrating the probnlem and the platform on which it occurs and also the model of the device/emulator you are using.

Hey, @NickIliev thanks for the quick response
Here's my code snippet I'm Using

TS Code

public longName="This is a Very Long String so its text should be wraped to new line but this is not happening"

HTML Code

<TextField hint="Select Lead" [(ngModel)]="longName" textWrap = "true" editable= "false" ></TextField>

I'm building application for android on OSX
Android version : 2.4.1
tns-core-modules : 2.4.0
nativescript-angular: 1.1.3

screen shot 2017-01-31 at 6 01 52 pm

Thanks

@dlucidone

Instead of _TextField_ use TextView
e.g.

<TextView [(ngModel)]="longName"  editable="false" textWrap="true"></TextView>

@NickIliev Tried stil not working.
Suppose If i have to make it editable based on some input and not editable for some with text wrap property being true in all cases is it possible. Thanks

@NickIliev thanks i also faceing same issue and solve it.

Remember that it is "editable" and not Editable".... (small "e") that helped me.

thanks helped me.

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mspusta78 picture mspusta78  路  59Comments

lscown picture lscown  路  58Comments

danielzzz picture danielzzz  路  59Comments

atanasovg picture atanasovg  路  50Comments

surdu picture surdu  路  63Comments