DataTable

9 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
€93.18
List Price:  €130.45
You save:  €37.27
£80.07
List Price:  £112.10
You save:  £32.03
CA$137.28
List Price:  CA$192.20
You save:  CA$54.91
A$152.07
List Price:  A$212.91
You save:  A$60.83
S$135.63
List Price:  S$189.89
You save:  S$54.25
HK$781.46
List Price:  HK$1,094.08
You save:  HK$312.61
CHF 90.94
List Price:  CHF 127.32
You save:  CHF 36.38
NOK kr1,092.98
List Price:  NOK kr1,530.22
You save:  NOK kr437.23
DKK kr695
List Price:  DKK kr973.03
You save:  DKK kr278.03
NZ$166.69
List Price:  NZ$233.38
You save:  NZ$66.68
د.إ367.25
List Price:  د.إ514.17
You save:  د.إ146.91
৳10,980.05
List Price:  ৳15,372.51
You save:  ৳4,392.46
₹8,349.95
List Price:  ₹11,690.26
You save:  ₹3,340.31
RM474.03
List Price:  RM663.66
You save:  RM189.63
₦140,610.93
List Price:  ₦196,860.93
You save:  ₦56,250
₨27,822.55
List Price:  ₨38,952.68
You save:  ₨11,130.13
฿3,692.63
List Price:  ฿5,169.83
You save:  ฿1,477.20
₺3,221.65
List Price:  ₺4,510.44
You save:  ₺1,288.79
B$509.04
List Price:  B$712.68
You save:  B$203.64
R1,855.78
List Price:  R2,598.17
You save:  R742.38
Лв182.26
List Price:  Лв255.17
You save:  Лв72.91
₩137,077.60
List Price:  ₩191,914.13
You save:  ₩54,836.52
₪373.45
List Price:  ₪522.84
You save:  ₪149.39
₱5,736.67
List Price:  ₱8,031.57
You save:  ₱2,294.89
¥15,589.84
List Price:  ¥21,826.40
You save:  ¥6,236.56
MX$1,695.81
List Price:  MX$2,374.20
You save:  MX$678.39
QR364.01
List Price:  QR509.63
You save:  QR145.62
P1,366.42
List Price:  P1,913.04
You save:  P546.62
KSh13,098.69
List Price:  KSh18,338.69
You save:  KSh5,240
E£4,734.21
List Price:  E£6,628.09
You save:  E£1,893.87
ብር5,744.43
List Price:  ብር8,042.44
You save:  ብር2,298
Kz83,626.96
List Price:  Kz117,081.10
You save:  Kz33,454.13
CLP$93,603.63
List Price:  CLP$131,048.83
You save:  CLP$37,445.20
CN¥722.59
List Price:  CN¥1,011.66
You save:  CN¥289.06
RD$5,806.04
List Price:  RD$8,128.69
You save:  RD$2,322.65
DA13,477.95
List Price:  DA18,869.67
You save:  DA5,391.72
FJ$227.77
List Price:  FJ$318.89
You save:  FJ$91.12
Q777.35
List Price:  Q1,088.32
You save:  Q310.97
GY$20,942.80
List Price:  GY$29,320.76
You save:  GY$8,377.96
ISK kr14,006.59
List Price:  ISK kr19,609.79
You save:  ISK kr5,603.20
DH1,002.91
List Price:  DH1,404.11
You save:  DH401.20
L1,766.77
List Price:  L2,473.55
You save:  L706.77
ден5,741.79
List Price:  ден8,038.73
You save:  ден2,296.94
MOP$805.60
List Price:  MOP$1,127.87
You save:  MOP$322.27
N$1,861.40
List Price:  N$2,606.04
You save:  N$744.63
C$3,682.99
List Price:  C$5,156.34
You save:  C$1,473.34
रु13,368.60
List Price:  रु18,716.58
You save:  रु5,347.97
S/372.63
List Price:  S/521.70
You save:  S/149.06
K387.65
List Price:  K542.73
You save:  K155.07
SAR375
List Price:  SAR525.02
You save:  SAR150.01
ZK2,733.69
List Price:  ZK3,827.27
You save:  ZK1,093.58
L463.60
List Price:  L649.06
You save:  L185.46
Kč2,329.15
List Price:  Kč3,260.91
You save:  Kč931.75
Ft36,189.97
List Price:  Ft50,667.41
You save:  Ft14,477.43
SEK kr1,092.80
List Price:  SEK kr1,529.97
You save:  SEK kr437.16
ARS$88,167.42
List Price:  ARS$123,437.91
You save:  ARS$35,270.49
Bs691.26
List Price:  Bs967.80
You save:  Bs276.53
COP$389,379.31
List Price:  COP$545,146.61
You save:  COP$155,767.30
₡51,210.15
List Price:  ₡71,696.27
You save:  ₡20,486.11
L2,472.36
List Price:  L3,461.40
You save:  L989.04
₲747,479.48
List Price:  ₲1,046,501.18
You save:  ₲299,021.69
$U3,863.50
List Price:  $U5,409.05
You save:  $U1,545.55
zł400.34
List Price:  zł560.50
You save:  zł160.15
Already have an account? Log In

Transcript

Hello, in this video, we are going to take a look at implementing a data table. So a date table is a great way of, you know, presenting information is essentially a table that displays data from a regulatory table. It's for the craziest columns or rows, you could use it to provide maybe if you're, you know, creating a new movie app, you know, movie time movie release date, no information about that movie, and another built in thought or you know, sort of built in so we have to, you know, implement that ourselves, but honestly, it's not too hard to do. So the first thing we are going to create an add on this is we want to create a I'm going to call this name and this is just going to have some basic string, input f name, which is first name, Uncle spring, gets a surname and then We're just going to implement a constructor.

The constructor is really simple. It is just going to be that this dot first name, last name. So when you pass in a variable, it will go to the first night and be assigned to the first name, f name variable and the well, you don't really need much more than this. After that, we are going to be essentially no, at least. So it was going to say equals name. and here we can just put a comma and then we are on engineer name Okay, there we go.

And my name I'm going to total up for you Captain Marvel Okay, so if we save that the mole we don't get anything we've just created a list and a class. So inside of here, we don't want a container you could income technically implemented the implementing of the child. We're just going to override the entire body and make the body the data table. It's not as hard as it stands for who's going to put data table what is required is column and it is rows. Okay, so for the columns, what you need to do is put is going to be a list of data columns. And in here we put a data column and in here we will have, what we're going to have is the label.

Text widget and this is just going to say first name for example. And we are also going to have a you can do numeric the various numerical not false or true that thing can have a tool to go The only other property that you can do, we do unsought on thought. We are going to say I am B And we are literally going to say set state. So the actual data widget gets updated with a name, which is what we created up here. Names dot sought doctors in the flipped. So we're gonna say a big no misses on defining a So A is on the phone where we're at to deploy in it Give me a moment when you finish implementing a dot F men compared to being dot first and so the next one you just needed to be fully implemented using the arrow operator and compare it to the next one.

And what we're going to do is add another column, you can guess what this column is for. It is here, the indentation, so to know stuff, but who cares and this is going to be for Sony. So four, s nine, f nine, and four. Okay, so that's the data column does that mean that we two column two or more columns is put more data column and then make sure that your you know your list here and your class support no more than So it's just two values per row because there are two columns, but it's easy to expand on it, I have an extra test or recommend that you do that. Okay, so for the rows, this is going to be a bit more dynamic. So we're going to men's map and India saying get like the each one name with a data row.

So from getting each one, so basically saying, you know, go for each one, and we're going to create a data row for it. He had to go semi colon and inside of here on his cells, so each day to roll has to have so and because we have to call We will need to sell you're going to put square brackets and inside of here you have a DSL. And inside of here we will need tech for this on this main dot F name there are some other property that we will show anytime campus we want to know this display that we just exit from shanty and on top, you know, you can perform some sort of placeholder. I'm gonna leave that at an extra tab for you. But I'm just interested in the data for now we're gonna add one more data so if you can guess what this is for this is turning f9 pilot No, it doesn't come in the There we go, we have everything from our array.

So that is implemented boy, boy, boy, here, here, and no matter what we add to our table, he will automatically get filled here. So let's test the sorting advocacy, it's sorted, we can sorted based on the first or the name. So that is fantastic. And again, you can add more. That's really for the data table. It seemed like quite a lot more as the setup because afterwards, let's say forward to just delete these two.

Didn't have day. I'm assuming I just need to do a hot restart. Sometimes you will get to that point. funnels if you ever come across data where your code looks okay, you're not getting any errors recommend a tsunami start. Probably all it is. And there we go.

So that's it. If you have any questions, feel free to pop me a message and enjoy. 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.