All language subtitles for 16. Using Lists - Setup

af Afrikaans
sq Albanian
am Amharic
ar Arabic
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bn Bengali
bs Bosnian
bg Bulgarian
ca Catalan
ceb Cebuano
ny Chichewa
zh-CN Chinese (Simplified)
zh-TW Chinese (Traditional)
co Corsican
hr Croatian
cs Czech
da Danish
nl Dutch
en English
eo Esperanto
et Estonian
tl Filipino
fi Finnish
fr French
fy Frisian
gl Galician
ka Georgian
de German
el Greek
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
hu Hungarian
is Icelandic
ig Igbo
id Indonesian
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
km Khmer
ko Korean
ku Kurdish (Kurmanji)
ky Kyrgyz
lo Lao
la Latin
lv Latvian
lt Lithuanian
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mn Mongolian
my Myanmar (Burmese)
ne Nepali
no Norwegian
ps Pashto
fa Persian Download
pl Polish
pt Portuguese
pa Punjabi
ro Romanian
ru Russian
sm Samoan
gd Scots Gaelic
sr Serbian
st Sesotho
sn Shona
sd Sindhi
si Sinhala
sk Slovak
sl Slovenian
so Somali
es Spanish
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
te Telugu
th Thai
tr Turkish
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu
or Odia (Oriya)
rw Kinyarwanda
tk Turkmen
tt Tatar
ug Uyghur
Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated: 1 00:00:00,880 --> 00:00:09,290 We now have all of the information that we need to finish the last little feature on our header if you 2 00:00:09,290 --> 00:00:11,960 remember when we worked on this last. 3 00:00:12,020 --> 00:00:19,640 If we resize our screen down to where the tabs go away and our menu appears and then if we open up our 4 00:00:19,640 --> 00:00:25,710 menu you can see we still just have our example draw in this video. 5 00:00:25,710 --> 00:00:32,850 We're gonna go ahead and change this and fill this draw out with the mobile navigation system and then 6 00:00:32,850 --> 00:00:39,900 we're going to get it all styled so let's get started using the list component that we learned about 7 00:00:39,900 --> 00:00:46,830 in the last video by coming up to the top of our code editor and we're going to underneath our menu 8 00:00:46,860 --> 00:00:47,790 icon. 9 00:00:47,790 --> 00:00:58,080 We're going to import the list from app material dash UI slash core slash list and then we're going 10 00:00:58,080 --> 00:01:11,820 to import the list item from material UI core list list item and then we're going to import the list 11 00:01:12,060 --> 00:01:22,190 item text from material dash UI slash core slash list item text. 12 00:01:22,230 --> 00:01:30,080 So now we can go ahead and scroll back down to our swipe table drawer where we have set this up and 13 00:01:30,080 --> 00:01:37,650 inside of our drawer all we have is the example text and let's go ahead and remove that now and replace 14 00:01:37,650 --> 00:01:47,250 it with a list component inside of our list we're gonna want to go ahead and create a list item for 15 00:01:47,280 --> 00:01:55,980 each of the routes that we had in our tabs each of these list items is going to be turned into a link 16 00:01:56,820 --> 00:02:04,830 a link using the component prop like we have on all of the rest of the components and then we'll pass 17 00:02:04,830 --> 00:02:14,490 down to that wing component the two property of just slash for this first one now inside of our list 18 00:02:14,550 --> 00:02:23,850 item we can make a list item text and we'll open that up and instead of placing our text on the primary 19 00:02:23,850 --> 00:02:29,430 prop like you had seen in the documentation instead of doing that we're actually just going to put our 20 00:02:29,430 --> 00:02:35,550 text on the inside of this which makes it a little bit easier to style since we're adding our own custom 21 00:02:35,550 --> 00:02:36,160 styles. 22 00:02:36,160 --> 00:02:43,300 Anyway let's go ahead and copy the list item and it's a list item text component. 23 00:02:43,540 --> 00:02:48,430 And we're gonna paste that for each of the routes that we want in our draw. 24 00:02:48,460 --> 00:02:56,830 So I'm going to change this one to slash services and change the home text to services and then create 25 00:02:56,860 --> 00:03:09,490 a another list item slash revolution said this to the revolution revolution and then another set to 26 00:03:09,970 --> 00:03:22,330 about it's about us and then our contact contact for contact us. 27 00:03:22,330 --> 00:03:31,960 And then finally our slash estimate to the Free Estimate page. 28 00:03:32,080 --> 00:03:37,750 Let's go ahead and save this and take a look at what our new draw is going to look like. 29 00:03:37,780 --> 00:03:39,460 So it wants the page refreshes. 30 00:03:39,460 --> 00:03:47,110 Let's come over and we'll open up our new draw and you can see here that we've got a new we set up a 31 00:03:47,110 --> 00:03:50,580 list of all of our different routes. 32 00:03:50,720 --> 00:03:57,530 You see that the links themselves are actually purple though and that is coming from some of the typography 33 00:03:57,530 --> 00:03:58,550 styles. 34 00:03:58,580 --> 00:04:05,610 So on each of our own list items actually no on the list item text component. 35 00:04:05,660 --> 00:04:15,290 Let's add the disable typography prop and this is going to disable the rendering of a typography component. 36 00:04:15,440 --> 00:04:22,970 Getting rid of all of those default styles so we'll add that to each of our list item text components 37 00:04:24,120 --> 00:04:27,560 and once we have done that we can save. 38 00:04:27,560 --> 00:04:32,870 And again the page will refresh so we can go see our new draw. 39 00:04:32,870 --> 00:04:39,500 And now you can see that actually the font has changed but that coloring is still the same. 40 00:04:39,590 --> 00:04:43,670 But that's OK because we're going to be getting rid of that anyways. 41 00:04:43,670 --> 00:04:47,980 But we needed to disable the typography regardless. 42 00:04:48,020 --> 00:04:52,960 Now we can add a couple more props here to help clean things up. 43 00:04:53,120 --> 00:05:00,620 For example here if you notice at the very top we have a bit of an extra a gap above the Home tab and 44 00:05:00,620 --> 00:05:05,940 it may be hard to see with the white background but there is actually extra spacing there. 45 00:05:06,050 --> 00:05:14,460 And so if we come to the lowest component let's actually go ahead and add the prop disable padding for 46 00:05:14,510 --> 00:05:15,980 go ahead and save this. 47 00:05:15,980 --> 00:05:23,030 Now the page will refresh and when we check you'll see that the home is now closer to the top and we've 48 00:05:23,030 --> 00:05:27,170 removed the extra bit of spacing that was in there. 49 00:05:27,170 --> 00:05:35,240 If you ever want to remove the padding or any default styles for any material UI component you should 50 00:05:35,240 --> 00:05:42,050 always go to the documentation page and see if they provide a prop or some other easy way to change 51 00:05:42,050 --> 00:05:49,980 the setting without having to create your own styles another example of a prop like that is on each 52 00:05:49,980 --> 00:05:58,710 of our list item components if we add a divider prop that's going to add a little thin divider between 53 00:05:58,710 --> 00:06:05,360 each of our tabs and make it look a little cleaner than just having the text on a blank background. 54 00:06:05,380 --> 00:06:12,610 We also actually need to add the button prop here on each of our list items to add the appropriate styles 55 00:06:12,610 --> 00:06:20,460 and functionality for the fact that we are using the list item here as a button so let's go ahead and 56 00:06:20,460 --> 00:06:31,470 copy the divider and the button props and go ahead and paste that onto each of our list items and once 57 00:06:31,470 --> 00:06:35,850 we've done that and we can save and we will refresh the page. 58 00:06:35,850 --> 00:06:42,030 And now what we can come over and see that we have some styling provided to us from the button it now 59 00:06:42,030 --> 00:06:48,540 does not have that purple coloring to it and you can see the dividers in between each route and how 60 00:06:48,540 --> 00:06:51,920 that really just cleans up the look now. 61 00:06:51,930 --> 00:06:58,680 You'll notice if you actually try and come and use one of the links that we're navigated to the page 62 00:06:58,680 --> 00:07:08,140 here up in the U.R.L. you can see our route is changing but the draw here actually stays open regardless. 63 00:07:08,180 --> 00:07:14,000 We definitely want to close this draw any time one of the list items is clicked on. 64 00:07:14,090 --> 00:07:21,800 So let's go ahead and on each of our list items we're going to add in on click prop set to an arrow 65 00:07:21,800 --> 00:07:32,070 function that is going to call our set draw are set open draw hook equal to False. 66 00:07:32,320 --> 00:07:41,250 Let's go ahead and copy this on click handler and paste that onto each of our list items as well get 67 00:07:41,240 --> 00:07:44,320 that on all of them and then we can save this. 68 00:07:44,370 --> 00:07:49,190 And now if we come in we open up our drawer compress that. 69 00:07:49,320 --> 00:07:55,710 Now you can see when we click on a link it then closes the drawer as it takes us to the new page. 8337

Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.