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
€95.83
List Price:  €134.16
You save:  €38.33
£79.50
List Price:  £111.30
You save:  £31.80
CA$143.90
List Price:  CA$201.46
You save:  CA$57.56
A$160.64
List Price:  A$224.91
You save:  A$64.26
S$135.72
List Price:  S$190.01
You save:  S$54.29
HK$776.05
List Price:  HK$1,086.50
You save:  HK$310.45
CHF 90.18
List Price:  CHF 126.26
You save:  CHF 36.07
NOK kr1,135.65
List Price:  NOK kr1,589.95
You save:  NOK kr454.30
DKK kr714.78
List Price:  DKK kr1,000.72
You save:  DKK kr285.94
NZ$176.84
List Price:  NZ$247.59
You save:  NZ$70.74
د.إ367.26
List Price:  د.إ514.17
You save:  د.إ146.91
৳11,966.34
List Price:  ৳16,753.36
You save:  ৳4,787.01
₹8,552.86
List Price:  ₹11,974.35
You save:  ₹3,421.48
RM446.65
List Price:  RM625.33
You save:  RM178.68
₦154,954.50
List Price:  ₦216,942.50
You save:  ₦61,988
₨27,870.41
List Price:  ₨39,019.69
You save:  ₨11,149.28
฿3,411.05
List Price:  ฿4,775.61
You save:  ฿1,364.55
₺3,526.84
List Price:  ₺4,937.72
You save:  ₺1,410.88
B$622.57
List Price:  B$871.63
You save:  B$249.05
R1,877.39
List Price:  R2,628.42
You save:  R751.03
Лв187.63
List Price:  Лв262.69
You save:  Лв75.06
₩147,402.34
List Price:  ₩206,369.18
You save:  ₩58,966.83
₪366.10
List Price:  ₪512.56
You save:  ₪146.45
₱5,787.77
List Price:  ₱8,103.11
You save:  ₱2,315.34
¥15,786.12
List Price:  ¥22,101.20
You save:  ¥6,315.08
MX$2,037.77
List Price:  MX$2,852.96
You save:  MX$815.19
QR364.86
List Price:  QR510.83
You save:  QR145.96
P1,392.51
List Price:  P1,949.57
You save:  P557.06
KSh12,923.70
List Price:  KSh18,093.70
You save:  KSh5,170
E£5,086.12
List Price:  E£7,120.77
You save:  E£2,034.65
ብር12,775.73
List Price:  ብር17,886.54
You save:  ብር5,110.80
Kz91,190.88
List Price:  Kz127,670.88
You save:  Kz36,480
CLP$99,000
List Price:  CLP$138,603.96
You save:  CLP$39,603.96
CN¥729.85
List Price:  CN¥1,021.82
You save:  CN¥291.97
RD$6,089.32
List Price:  RD$8,525.29
You save:  RD$2,435.97
DA13,523.04
List Price:  DA18,932.80
You save:  DA5,409.76
FJ$232
List Price:  FJ$324.81
You save:  FJ$92.81
Q771.86
List Price:  Q1,080.63
You save:  Q308.77
GY$20,936.54
List Price:  GY$29,311.99
You save:  GY$8,375.45
ISK kr13,809.61
List Price:  ISK kr19,334.01
You save:  ISK kr5,524.40
DH1,010.12
List Price:  DH1,414.21
You save:  DH404.08
L1,844.84
List Price:  L2,582.85
You save:  L738.01
ден5,904.06
List Price:  ден8,265.92
You save:  ден2,361.86
MOP$800.42
List Price:  MOP$1,120.62
You save:  MOP$320.20
N$1,875.49
List Price:  N$2,625.76
You save:  N$750.27
C$3,684.93
List Price:  C$5,159.05
You save:  C$1,474.12
रु13,704.96
List Price:  रु19,187.49
You save:  रु5,482.53
S/374.64
List Price:  S/524.51
You save:  S/149.87
K400.61
List Price:  K560.88
You save:  K160.26
SAR375.43
List Price:  SAR525.61
You save:  SAR150.18
ZK2,775.82
List Price:  ZK3,886.26
You save:  ZK1,110.44
L476.97
List Price:  L667.78
You save:  L190.80
Kč2,418.02
List Price:  Kč3,385.32
You save:  Kč967.30
Ft39,407.88
List Price:  Ft55,172.60
You save:  Ft15,764.72
SEK kr1,098.38
List Price:  SEK kr1,537.78
You save:  SEK kr439.39
ARS$102,864.61
List Price:  ARS$144,014.57
You save:  ARS$41,149.96
Bs691.77
List Price:  Bs968.51
You save:  Bs276.73
COP$439,472.10
List Price:  COP$615,278.53
You save:  COP$175,806.42
₡50,793.98
List Price:  ₡71,113.60
You save:  ₡20,319.62
L2,543.82
List Price:  L3,561.45
You save:  L1,017.63
₲778,417.60
List Price:  ₲1,089,815.78
You save:  ₲311,398.18
$U4,386.09
List Price:  $U6,140.71
You save:  $U1,754.61
zł409.57
List Price:  zł573.42
You save:  zł163.84
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.