TextField

4 minutes
Share the link to this page
Copied
  Completed
You need to have access to the item to view this lesson.
One-time Fee
$99.99
List Price:  $139.99
You save:  $40
€97.10
List Price:  €135.95
You save:  €38.84
£81.98
List Price:  £114.78
You save:  £32.79
CA$144.12
List Price:  CA$201.77
You save:  CA$57.65
A$161.19
List Price:  A$225.68
You save:  A$64.48
S$136.65
List Price:  S$191.32
You save:  S$54.66
HK$778.52
List Price:  HK$1,089.95
You save:  HK$311.43
CHF 91.10
List Price:  CHF 127.55
You save:  CHF 36.44
NOK kr1,138.76
List Price:  NOK kr1,594.31
You save:  NOK kr455.55
DKK kr724.47
List Price:  DKK kr1,014.29
You save:  DKK kr289.81
NZ$178.61
List Price:  NZ$250.07
You save:  NZ$71.45
د.إ367.26
List Price:  د.إ514.18
You save:  د.إ146.91
৳12,156.97
List Price:  ৳17,020.25
You save:  ৳4,863.27
₹8,658.11
List Price:  ₹12,121.71
You save:  ₹3,463.59
RM450.55
List Price:  RM630.79
You save:  RM180.24
₦155,626.43
List Price:  ₦217,883.23
You save:  ₦62,256.80
₨27,888.02
List Price:  ₨39,044.35
You save:  ₨11,156.32
฿3,446.35
List Price:  ฿4,825.03
You save:  ฿1,378.68
₺3,556.29
List Price:  ₺4,978.94
You save:  ₺1,422.65
B$606.79
List Price:  B$849.54
You save:  B$242.74
R1,874.41
List Price:  R2,624.26
You save:  R749.84
Лв190.05
List Price:  Лв266.08
You save:  Лв76.03
₩145,752.31
List Price:  ₩204,059.07
You save:  ₩58,306.75
₪360.39
List Price:  ₪504.57
You save:  ₪144.17
₱5,853.66
List Price:  ₱8,195.36
You save:  ₱2,341.70
¥15,572.27
List Price:  ¥21,801.80
You save:  ¥6,229.53
MX$2,085.30
List Price:  MX$2,919.51
You save:  MX$834.20
QR364.06
List Price:  QR509.70
You save:  QR145.63
P1,402.38
List Price:  P1,963.39
You save:  P561
KSh12,948.70
List Price:  KSh18,128.70
You save:  KSh5,180
E£5,039.36
List Price:  E£7,055.31
You save:  E£2,015.94
ብር12,715.66
List Price:  ብር17,802.44
You save:  ብር5,086.77
Kz91,357.53
List Price:  Kz127,904.19
You save:  Kz36,546.66
CLP$101,345.86
List Price:  CLP$141,888.26
You save:  CLP$40,542.40
CN¥732.82
List Price:  CN¥1,025.98
You save:  CN¥293.16
RD$6,134.80
List Price:  RD$8,588.97
You save:  RD$2,454.16
DA13,576.37
List Price:  DA19,007.47
You save:  DA5,431.09
FJ$232.70
List Price:  FJ$325.79
You save:  FJ$93.09
Q772.41
List Price:  Q1,081.41
You save:  Q308.99
GY$20,933.18
List Price:  GY$29,307.29
You save:  GY$8,374.10
ISK kr14,090.59
List Price:  ISK kr19,727.39
You save:  ISK kr5,636.80
DH1,006.40
List Price:  DH1,409.01
You save:  DH402.60
L1,875.81
List Price:  L2,626.21
You save:  L750.40
ден5,975.47
List Price:  ден8,365.90
You save:  ден2,390.42
MOP$802.61
List Price:  MOP$1,123.69
You save:  MOP$321.07
N$1,888.37
List Price:  N$2,643.79
You save:  N$755.42
C$3,677.56
List Price:  C$5,148.74
You save:  C$1,471.17
रु13,854.45
List Price:  रु19,396.79
You save:  रु5,542.33
S/376.25
List Price:  S/526.76
You save:  S/150.51
K404.62
List Price:  K566.49
You save:  K161.86
SAR375.17
List Price:  SAR525.25
You save:  SAR150.08
ZK2,779
List Price:  ZK3,890.71
You save:  ZK1,111.71
L483.25
List Price:  L676.57
You save:  L193.32
Kč2,458.07
List Price:  Kč3,441.40
You save:  Kč983.32
Ft40,200.54
List Price:  Ft56,282.36
You save:  Ft16,081.82
SEK kr1,115.80
List Price:  SEK kr1,562.17
You save:  SEK kr446.36
ARS$104,110.09
List Price:  ARS$145,758.30
You save:  ARS$41,648.20
Bs691.42
List Price:  Bs968.01
You save:  Bs276.59
COP$430,165.61
List Price:  COP$602,249.06
You save:  COP$172,083.45
₡50,220.58
List Price:  ₡70,310.82
You save:  ₡20,090.24
L2,545.64
List Price:  L3,564
You save:  L1,018.36
₲788,552.76
List Price:  ₲1,104,005.41
You save:  ₲315,452.65
$U4,402.39
List Price:  $U6,163.53
You save:  $U1,761.13
zł414.69
List Price:  zł580.58
You save:  zł165.89
Already have an account? Log In

Transcript

Hello in this video I'm going to show you the text field input widget. This couldn't be simpler. Basically a text field they can input text into it as a regular child is called text field. Like so. And in here the whole bunch of properties that you can modify. So before we get on to the on change on top stuff, you can change the style the decoration you know stuff like the color can change, you know, even the cursor property, the more like the radius, the with the colors, you can do a lot of you know, customization, you can just say blip so you do set enabled to false for that get the max length as well.

So if you want to read them, you know restrict the length, the number of lines, all that stuff, I want you to you know, have a go at that itself and the text on all of that stuff, or I want to show you, it you know when you type something in so if I just actually show you what we get so far. So we got this little textbooks Yeah, so that's the reason only two messing around with the the decoration property and the theme etc to you know, get a better looking text field, but at the moment know what's happening with that text so what we can do is stuff that with the unchanged method takes a string color str this basically gets triggered every single time a change occurs in that tech field. So if you add a cater, it will get triggered yeah 10 characters will get through the 10 times if you delete it, it will get triggered.

So if I just simply do a photo printout STR and you see what we get Okay, and so as you can see, we've got all of that but I want to clear that for a second. So essentially, we've got lucky you know, a blank slate for typing hate. We get hate where if I type in the word hello, whenever I didn't see we get Hello obviously if I do With the keyboard still Same thing for space, w o or o j, as you can see, we get everything a here, actually, you know includes a space, whereas here doesn't, every single change is picked up right here and what you can do from here, you could maybe have another variable, so what you could do is bring a txt equal, that is just empty, and we can say, t equals. So that way we can keep track of what the text field is essentially, you know, you know, what the text field has been thought of in terms of what they use as input, and sort of the text.

The benefit of that is maybe if you had a long form username, password, we can keep track of it. Then when you click the button to submit your like login, for example. You can use these variables to do the check and you know, appropriately collect the data And provide a message saying you know, incorrect you know, password and username combination, whatever it is, but that's the way you would you know, go about it. There's other methods as well. So you can do on tap. So that's triggered when you tap it.

So when so not, not when you input it of inputs when you highlight essentially, there's also unsubmitted. If you were to click enter, or you know something else, triggers submit event. So on the login form, that's really cool. Not necessarily login, this is also triggered, which has the string as well. The great thing about that is if on submit, you can get the string and from that you could pass it into another method, which is protecting validated. That's really for the tech field.

So by now you should you know, have you know pretty good knowledge and to be able to get to grips with stuff like the text alignment, the you know, the the decoration stuff, the style or last have no way to customize that yourself, but If you have any questions, I am here, so feel free to pop me a message. And as usual, I look forward to seeing you in the next video.

Sign Up

Share

Share with friends, get 20% off
Invite your friends to LearnDesk learning marketplace. For each purchase they make, you get 20% off (upto $10) on your next purchase.