Tabs

14 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
€65.14
List Price:  €93.07
You save:  €27.92
£55.73
List Price:  £79.62
You save:  £23.88
CA$95.61
List Price:  CA$136.60
You save:  CA$40.98
A$106.30
List Price:  A$151.87
You save:  A$45.56
S$94.64
List Price:  S$135.20
You save:  S$40.56
HK$546.91
List Price:  HK$781.33
You save:  HK$234.42
CHF 63.50
List Price:  CHF 90.72
You save:  CHF 27.21
NOK kr764.69
List Price:  NOK kr1,092.46
You save:  NOK kr327.77
DKK kr485.92
List Price:  DKK kr694.20
You save:  DKK kr208.28
NZ$117
List Price:  NZ$167.15
You save:  NZ$50.15
د.إ257.06
List Price:  د.إ367.25
You save:  د.إ110.18
৳7,661.98
List Price:  ৳10,946.16
You save:  ৳3,284.17
₹5,839.65
List Price:  ₹8,342.71
You save:  ₹2,503.06
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,575.56
List Price:  ฿3,679.53
You save:  ฿1,103.97
₺2,262.43
List Price:  ₺3,232.18
You save:  ₺969.75
B$357.76
List Price:  B$511.10
You save:  B$153.34
R1,296.01
List Price:  R1,851.52
You save:  R555.51
Лв127.38
List Price:  Лв181.98
You save:  Лв54.60
₩95,113.23
List Price:  ₩135,881.87
You save:  ₩40,768.63
₪260.11
List Price:  ₪371.60
You save:  ₪111.49
₱3,999.61
List Price:  ₱5,713.97
You save:  ₱1,714.36
¥10,715.43
List Price:  ¥15,308.41
You save:  ¥4,592.98
MX$1,185.45
List Price:  MX$1,693.57
You save:  MX$508.12
QR254.79
List Price:  QR364.01
You save:  QR109.21
P955.69
List Price:  P1,365.33
You save:  P409.64
KSh9,427.65
List Price:  KSh13,468.65
You save:  KSh4,041
E£3,355.67
List Price:  E£4,794.02
You save:  E£1,438.35
ብር3,989.43
List Price:  ብር5,699.43
You save:  ብር1,710
Kz58,616.62
List Price:  Kz83,741.62
You save:  Kz25,125
CLP$66,326.02
List Price:  CLP$94,755.52
You save:  CLP$28,429.50
CN¥506.51
List Price:  CN¥723.62
You save:  CN¥217.11
RD$4,049.59
List Price:  RD$5,785.38
You save:  RD$1,735.78
DA9,420.19
List Price:  DA13,457.99
You save:  DA4,037.80
FJ$157.70
List Price:  FJ$225.30
You save:  FJ$67.59
Q542.62
List Price:  Q775.21
You save:  Q232.58
GY$14,613.08
List Price:  GY$20,876.73
You save:  GY$6,263.64
ISK kr9,792.30
List Price:  ISK kr13,989.60
You save:  ISK kr4,197.30
DH706.05
List Price:  DH1,008.69
You save:  DH302.63
L1,239.86
List Price:  L1,771.31
You save:  L531.44
ден4,010.92
List Price:  ден5,730.13
You save:  ден1,719.21
MOP$562.15
List Price:  MOP$803.11
You save:  MOP$240.95
N$1,302.54
List Price:  N$1,860.85
You save:  N$558.31
C$2,571.43
List Price:  C$3,673.63
You save:  C$1,102.20
रु9,317.58
List Price:  रु13,311.40
You save:  रु3,993.82
S/262.81
List Price:  S/375.46
You save:  S/112.65
K268.53
List Price:  K383.63
You save:  K115.10
SAR262.51
List Price:  SAR375.03
You save:  SAR112.52
ZK1,879.71
List Price:  ZK2,685.42
You save:  ZK805.70
L324.19
List Price:  L463.14
You save:  L138.95
Kč1,629.65
List Price:  Kč2,328.17
You save:  Kč698.52
Ft25,373.17
List Price:  Ft36,248.95
You save:  Ft10,875.77
SEK kr758.75
List Price:  SEK kr1,083.98
You save:  SEK kr325.22
ARS$61,468.94
List Price:  ARS$87,816.53
You save:  ARS$26,347.59
Bs482.36
List Price:  Bs689.12
You save:  Bs206.75
COP$272,946.91
List Price:  COP$389,940.87
You save:  COP$116,993.96
₡35,623.88
List Price:  ₡50,893.45
You save:  ₡15,269.56
L1,732.95
List Price:  L2,475.75
You save:  L742.80
₲523,151.84
List Price:  ₲747,391.81
You save:  ₲224,239.96
$U2,683.09
List Price:  $U3,833.15
You save:  $U1,150.06
zł281.85
List Price:  zł402.67
You save:  zł120.81
Already have an account? Log In

Transcript

Hello, in this ionic programming video, we're going to show you the CSS component tabs, tabs. Chances are if you've used an application, or if you've created an application or if you're here watching this video, you know where a tablet system is, for you, Facebook, Twitter, something along those lines, it's a great way of displaying information that usually will be on a separate page. Technically, it is. But the actual way to access those different pages are always on the screen, you can make that disappear. But I think the whole point, the actual benefits of it, of a tablet system, that the buttons are always there, most of the time they're at the bottom, but they can be on the top as well. There's no reason why they come.

Many applications do have them on the top. So let's get started. First of all to create a tab This is created. Really simple to do. Add a class of tubs In here, we need a tag, which is gonna have a class of tab dash item. And this is where the oil itself I think you guessed already, I'm going to call this home.

And to add more items, you simply just copy and paste this. This and now I'm just going to change this setting, change this to and save it. Obviously these don't do anything but this is the sort of deals or tabs you would have in an application. So now let's build our project. Taking a little longer than usual, a lot longer actually. Okay.

It's a bit laggy let's have a look at what Activity Monitor is saying. Activity Monitor is looking at. Okay, weird void. x code again, god damn x code. For some reason, I loaded up Xcode earlier on as well. And it was just using so many resources.

Sometimes you will get an application that just wants to do its own thing. tell you a little story while I miss loaded Xcode up again. I was using GitHub a few months ago, and I am not joking. GitHub tried to use over 30 gigs of ram it was actually going into reserved ram from from my hard disk. I was like, why would you want to use so much he wasn't even doing anything. Either way, he that was really annoying.

So let's just run this Seems a bit laggy the simple Activity Monitor is saying again, seems okay, fingers should be able to make do. The application is loading up. So here we go, here are the tab system for click on it, nothing happened apart from I can hover over it click but doesn't actually change anything because that's required JavaScript. And that's going to be in a separate video. This is just showing the CSS component. So that's text.

A lot of time you've seen tab. items that have icons in there to add an icon really simple. So let's just add an icon here. So what we're going to do is do it class. If you want more information about CSS component, I mean, ionic icons, feel free to just do a quick Google of ionic icon and you'll get a page showing you all the different classes they can use and what they look like. And what you want to do is you want to position the tabs so tabs, icon dash.

So let's just save this, I'm actually going to have like a hybrid system. So I'm going to have two that actually have an icon and the third one won't have an icon at all. So I'm going to put this as a good a save. build our project. To go there so now let's run this. Okay, so here we go.

We have an icon of Roy, Connie Molly thinking well, don't worry Got the text? Why is that at the top and the reason is because of this class right here, tabs dash or Yukon dash top. So we anchor everything to the top. If you don't want text in there, you, you simply remove the text. And one thing you need to do is change top or whatever position you got to own it. So that makes the positioning or good when you can also do is do dash left.

So what this does, actually, I won't even tell you our return. I'm just gonna build it and show you that's always the best way to learn visual learning how you can actually see the result of it Okay, so now that I have built let's run the application and simulator. After I've done this video, I'm definitely going to have to have a look a wide so slow. I'm hoping that a simple restart will quickly fixes most problems, but it's weird. I haven't been doing that much on it today computer haven't been on that long. But for me, it seems enough for this video, so that should be a Okay, so if you put, as you can see tab dash a icon dash left, it anchors the icon to the left and well because there's no icon here this is just well and good.

And that's it really what you can also do is change the color of well your tab because if you have a look at the tab at the moment, he's just got this gray Ready for color. So if you want to change the color, you simply use one of these colors that we've got right here. Basically the same color classes or color naming convention that we've had in all for the warrior, the CSS components, you just put cabs dash, let me put positive, save that rebuild the project. Okay, now let's just run it and you'll see our new or our tab are different From colon, so it's just a great way of changing the current system. Okay, here we go. Let's load up the simulator.

There we go, we have a different color now because we used positive, you might be thinking, Oh, how do I change the color of the actual items themselves, maybe you want to change them. I'm going to chain them to dock to do that you put tabs, dash color, so tab dash color changes the actual of the actual colors, the items inside. So I'm going to put dash dog which is this one right here. Obviously you probably won't want a dog color and another dog or like I don't know like call ugly mom. You have to see very well. Nothing I'm going to show you before.

I can pilotless technolo was compiled for I do tab dash drift. This looks quite cool as well. So let me show you what this is like and you need to set one of these to active. So let me set this one to active. And now let's build a project. So if you can hear my stomach's rumbling, just had some pizza, which still so like, he wants more food.

I think I might have to bury my stomach and after I've done this video, okay, so it's almost built our project. So now let's run it in the simulator. They've learned quite a lot in this video by Todd how to position them how to add color, how to have icons, how to not have icons and just text or does have icons and no text. Best way to learn is just to advance on what you don't buy. just combine the different elements that you've learned, actually see the results. Sometimes it won't look so good.

Sometimes you'll look fantastic under, let's say died. Definitely not what we want. So let's go back and see what about this. It didn't like so tab, dash stroyed. I'm going to get rid of this position. I shouldn't be an issue whatsoever.

Tab dash positive. I think this needs to be background, tabs dash background as positive tab dash color dash dog with inside of this we have tabs Just trying to ah, I think I know what I've done within. This actually needs to be its own container above what we already had. So, within this we actually need a div. Copy and paste the and in turn, three after here. Go back back to this bad boy out.

It's close enough in terms of indentation. So class, Disney stellar class of tabs, save that rebuild our project The first thing I'm going to do once I've done this video and actually once I've edited the and go ready to upload it restarted just try and do some test videos just to make sure it's it's all good now because this is really up, I'm hoping it will be okay cuz I'm gonna watch the video afterwards just to make sure it's okay because if it isn't, I will re record it but I think it's smooth enough for this video but I will rectify this problem if you're watching this video, very sorry, but I will I will, chances are I will have already rectified it by the time you watch this video. Though this is about a load, come on load in our amazing simulator. So there we go.

And as it's sort of hard to see I'm gonna zoom in a second. There is a line on the top and that's what the strict part if it is another way of indicating which one Active because the other two are gray, this is dark, and that that dark color. And that color that is dependent on the class that we use here, tab dash color dash dark. So if I were to lift a click on this one, as you can see, it's selecting it, but then deselect when I let go. And like I said, because we haven't added any JavaScript, and that's gonna be a separate video, because at the moment, we're just covering CSS components. You'll learn all about having individual pages, which have its own content for each individual tab.

So that's it. If you have any questions, feel free to post them on our education platform, sonar learning.co.uk. There'll be a link in the description. We'll have a link alongside that one to the source code of this video source code out every other video in this series, fill out the video, please do the forms up hit that subscribe button, 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.