List

13 minutes
Share the link to this page
Copied
  Completed
You need to have access to the item to view this lesson.
One-time Fee
$69.99
List Price:  $99.99
You save:  $30
€64.99
List Price:  €92.85
You save:  €27.85
£55.77
List Price:  £79.68
You save:  £23.90
CA$95.68
List Price:  CA$136.70
You save:  CA$41.01
A$105.96
List Price:  A$151.38
You save:  A$45.42
S$94.48
List Price:  S$134.98
You save:  S$40.50
HK$546.78
List Price:  HK$781.15
You save:  HK$234.36
CHF 63.33
List Price:  CHF 90.48
You save:  CHF 27.14
NOK kr761.11
List Price:  NOK kr1,087.35
You save:  NOK kr326.23
DKK kr485.02
List Price:  DKK kr692.92
You save:  DKK kr207.89
NZ$116.44
List Price:  NZ$166.35
You save:  NZ$49.91
د.إ257.06
List Price:  د.إ367.25
You save:  د.إ110.18
৳7,660.01
List Price:  ৳10,943.35
You save:  ৳3,283.33
₹5,835.78
List Price:  ₹8,337.18
You save:  ₹2,501.40
RM331.75
List Price:  RM473.95
You save:  RM142.20
₦86,437.65
List Price:  ₦123,487.65
You save:  ₦37,050
₨19,492.21
List Price:  ₨27,847.21
You save:  ₨8,355
฿2,572.74
List Price:  ฿3,675.50
You save:  ฿1,102.76
₺2,264.43
List Price:  ₺3,235.04
You save:  ₺970.61
B$355.02
List Price:  B$507.19
You save:  B$152.17
R1,295.44
List Price:  R1,850.71
You save:  R555.27
Лв127.05
List Price:  Лв181.51
You save:  Лв54.46
₩94,909.58
List Price:  ₩135,590.93
You save:  ₩40,681.35
₪260.15
List Price:  ₪371.66
You save:  ₪111.51
₱3,993.87
List Price:  ₱5,705.78
You save:  ₱1,711.90
¥10,713.01
List Price:  ¥15,304.96
You save:  ¥4,591.95
MX$1,187.73
List Price:  MX$1,696.83
You save:  MX$509.10
QR254.83
List Price:  QR364.06
You save:  QR109.23
P950.82
List Price:  P1,358.38
You save:  P407.55
KSh9,247.76
List Price:  KSh13,211.65
You save:  KSh3,963.89
E£3,352.12
List Price:  E£4,788.95
You save:  E£1,436.83
ብር4,006.43
List Price:  ብር5,723.72
You save:  ብር1,717.28
Kz58,511.64
List Price:  Kz83,591.64
You save:  Kz25,080
CLP$65,950.47
List Price:  CLP$94,219
You save:  CLP$28,268.52
CN¥506.53
List Price:  CN¥723.65
You save:  CN¥217.11
RD$4,055.76
List Price:  RD$5,794.19
You save:  RD$1,738.43
DA9,420.16
List Price:  DA13,457.95
You save:  DA4,037.79
FJ$157.70
List Price:  FJ$225.30
You save:  FJ$67.59
Q542.52
List Price:  Q775.06
You save:  Q232.54
GY$14,601.52
List Price:  GY$20,860.22
You save:  GY$6,258.69
ISK kr9,773.40
List Price:  ISK kr13,962.60
You save:  ISK kr4,189.20
DH703.98
List Price:  DH1,005.73
You save:  DH301.75
L1,236.34
List Price:  L1,766.28
You save:  L529.93
ден3,998.26
List Price:  ден5,712.05
You save:  ден1,713.78
MOP$561.77
List Price:  MOP$802.57
You save:  MOP$240.79
N$1,291.99
List Price:  N$1,845.78
You save:  N$553.78
C$2,569.36
List Price:  C$3,670.67
You save:  C$1,101.31
रु9,319.09
List Price:  रु13,313.56
You save:  रु3,994.46
S/260.54
List Price:  S/372.22
You save:  S/111.67
K269.79
List Price:  K385.44
You save:  K115.64
SAR262.50
List Price:  SAR375.01
You save:  SAR112.51
ZK1,882.68
List Price:  ZK2,689.66
You save:  ZK806.98
L323.40
List Price:  L462.03
You save:  L138.62
Kč1,628.77
List Price:  Kč2,326.92
You save:  Kč698.14
Ft25,334.28
List Price:  Ft36,193.38
You save:  Ft10,859.10
SEK kr755.02
List Price:  SEK kr1,078.64
You save:  SEK kr323.62
ARS$61,468.17
List Price:  ARS$87,815.44
You save:  ARS$26,347.26
Bs483.33
List Price:  Bs690.51
You save:  Bs207.17
COP$271,845.87
List Price:  COP$388,367.89
You save:  COP$116,522.02
₡35,672.25
List Price:  ₡50,962.55
You save:  ₡15,290.29
L1,724.16
List Price:  L2,463.20
You save:  L739.03
₲522,510.75
List Price:  ₲746,475.93
You save:  ₲223,965.17
$U2,674.97
List Price:  $U3,821.56
You save:  $U1,146.58
zł281.37
List Price:  zł401.98
You save:  zł120.60
Already have an account? Log In

Transcript

Hello, in this ionic programming video, we are going to look at the list. css component list is a common way of just displaying data. That's pretty much it, there's not much more to say. So without further ado, let's get into a warm actually first gonna do is just run this so the simulator is running. So yeah, fine, I'm happy with that. Now we can continue doing what we're going to do.

Okay, so first of all, let's create an unordered list. This will have a class of list. And then in here we're going to have a list item. And now these lists are ultimately going to have a class of item and I'm just simply going to call it one. I'm going to copy and paste this And change this to free and or save that. Now if I open up my terminal, I CD, desktop CD to only, please awesome now just build it for iOS, build iOS, you can run it, build it, test it on whatever device you want.

I'm going to be building it and running it in an iOS simulator. It's just easy to show the result to you. Okay, okay, so that's all running that. So let's just rerun this in our simulator. So there we go. We have a simple left.

It's that simple. We're going to advance on it a little bit more. You can also do something called a lift divider. which essentially is a great way of dividing different sets of items. So imagine if origin one and two was part of a group. And this was part of a number group.

That's a great way of pointing. You can call it groups essentially. So to create a divider, you just do this do a list item. And for the class, we want all you term or term dash binder. And now I'm just going to call it group one. Copy and paste this for this group to save it.

Build our application again. We run it in the simulator So here we go, we actually have different groups. Now, you might be wondering why this is sort of overlapping the status boys is just because we deleted in one of the starting videos going to setting up our project, we deleted pretty much all the code from our project, you probably would just manipulate it accordingly. So you won't really have this issue if you're doing a serious project. So the next list feature we're going to show you is list icons. So what we're going to do, we're going to add an icon to item two.

And to do that, just put in our class of item icon, dash the nav, we want to set the position on the left if you wanted it on the right, you simply change left to right. And now in here Alright, class Oh, econ ion dash. What's up put, I'm going to put the email icon if you want more information about the ionic icon, pack, just google ionic icons and you'll get a bunch of different classes that you can use. It's really cool because they're all built in and they look fantastic. And for this, I'm actually going to rename it so we say email so it's actually relevant to what it is. Showcasing in terms of the icons are now let's just build the project.

We run the project there you go. We now have an icon. That is Think that has made the user experience or the actual interface look a lot better now. And especially when you start having other icons, either it turns on name better, you can have icons on the left on the right as well. Very self explanatory because we've put the icon before the module wants to be on the right for it afterwards. And also add the item dash icon, dash, right clap if you wanted it both ways.

So that's just a great way of adding icons. The next thing we're going to look at is adding a button within one of our list items. So let's add it to a term. Sorry, two item one, for example. So we're going to anchor the button to the right so we need to put item dash button dash I think you guessed it, right. If you want that on the left, simply change that to left and for this What we're going to do is just add a go to have a class of return.

For the styling, I'm just going to put button.com if you want more information about buttons check out that video is all explained everything that you need to know about buttons in ionic. And in here, I'm going to do is just add an icon. This is going to have a class of icon, ion dash, iOS dash telephone again, this is just a certain icon class. If you want more information, check out the ionic icon. Pack website to change this to cool Save that we build our project. We run it in our simulator.

There we go, we have a pattern with in our list, which is fantastic. So that's a great little thing that you do. And you could have multiple buttons as well. Very similar to having an icon you can mix and match icons and buttons as an extra task. I actually recommend doing that mixing and matching the features that I'm showing you because it's a great way of advancing your knowledge. So the next thing we're going to look at is item avatars, which is essentially displaying a circular image, the image itself or the source image doesn't have to be circular.

The styling handles all of that, which is fantastic. So this one Let's do for item three, because I'll leave the others because they're looking pretty good at the moment, what I'm going to do is add a class of item dash avatar. In all fairness, you don't actually have to list items, these could be anchor tags, and maybe you want them to refer to something else. This owner in order list could be a div, as long as you have these classes, everything should work fine. Again, experiment with because that's the best way of learning and that's the best way of knowing how it all works. So we've got our return dash avatar class, and inside here, I'm going to add image equals Oh, get rid of this.

Changes to h2. So you can actually see Hi, this is I'm gonna call this heading. Now put a paragraph tag on a call list. I'm going to call this more information and in the source, I'm going to I have Google open up, just got a picture of Gabe, you're going to copy the image address. Save that. Paste that, save it, build our project.

We run it in a simulator might get a warning and the image might not load potentially. Nope it loaded. So that is fine. I must have already added the information In the info palace, which allows us to get external sources. So there you go, it's a great way of displaying an avatar, this could be maybe the name of a person, and the morning from information could possibly have the email address of the person. So it's a great way of creating some sort of contact list.

Now we're going to show you how to do an item form now. Very, very similar, but the biggest difference is it's not rounded. So what we're going to do is, for this list item right here, I'm going to put a class of item form nailed down. Now, we want to set it to the position so it's left or right only 32 left, not left, left. And in here, we're going to have an image Need to close it off but it's just a habit from x HTML. For the source, I'm actually going to use the exact same image so you can see the difference in the code.

Copy that. Paste it and for the text on to our input, Gabe Newell p tag never really seen free save that and now build our project we run this in our simulator So there you go. That is the difference. The icon is slightly bigger and it isn't rounded. So you get a variety of methods to actually style your application. The laughing we're going to show you is an inset list with J, which is a list that doesn't span the full width of the container, which is a great way of making it look on and say cool, but what word I'm looking for many different all you do is put a list gash insect, save that need to build the project, sorry.

Rerun this simulator and there we go. As you can see didn't spend the full width of the parent container and he actually looks really cool. Obviously that down to the way you want your interface to look, it's totally customizable. So that's it for this video very simple stuff. If you have any questions, feel free to post them on sonar learning Dakota UK, which is our free education platform. There'll be a link in the description to that they'll be another link in the description to the source code from this video and all the other videos in this series.

If you like this video, please give it a thumbs up. Hit that subscribe button and leave us a comment. And as usual, thanks for watching and I hope you have a great day.

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.