All language subtitles for 4. Custom slot

af Afrikaans
ak Akan
sq Albanian
am Amharic
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bem Bemba
bn Bengali
bh Bihari
bs Bosnian
br Breton
bg Bulgarian
km Cambodian
ca Catalan
ceb Cebuano
chr Cherokee
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
ee Ewe
fo Faroese
tl Filipino
fi Finnish
fy Frisian
gaa Ga
gl Galician
ka Georgian
de German
el Greek
gn Guarani
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
hu Hungarian
is Icelandic
ig Igbo
id Indonesian
ia Interlingua
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
rw Kinyarwanda
rn Kirundi
kg Kongo
ko Korean
kri Krio (Sierra Leone)
ku Kurdish
ckb Kurdish (Soranรฎ)
ky Kyrgyz
lo Laothian
la Latin
lv Latvian
ln Lingala
lt Lithuanian
loz Lozi
lg Luganda
ach Luo
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mfe Mauritian Creole
mo Moldavian
mn Mongolian
my Myanmar (Burmese)
sr-ME Montenegrin
ne Nepali
pcm Nigerian Pidgin
nso Northern Sotho
no Norwegian
nn Norwegian (Nynorsk)
oc Occitan
or Oriya
om Oromo
ps Pashto
fa Persian
pl Polish
pt-BR Portuguese (Brazil)
pt Portuguese (Portugal)
pa Punjabi
qu Quechua
ro Romanian
rm Romansh
nyn Runyakitara
ru Russian
sm Samoan
gd Scots Gaelic
sr Serbian
sh Serbo-Croatian
st Sesotho
tn Setswana
crs Seychellois Creole
sn Shona
sd Sindhi
si Sinhalese
sk Slovak
sl Slovenian
so Somali
es Spanish
es-419 Spanish (Latin American)
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
tt Tatar
te Telugu
th Thai
ti Tigrinya
to Tonga
lua Tshiluba
tum Tumbuka
tr Turkish
tk Turkmen
tw Twi
ug Uighur
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
wo Wolof
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu
Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated: 1 00:00:00,420 --> 00:00:05,470 Hello, welcome back, then you're lecturer in the last lecture we have fixed our Model three was about 2 00:00:05,470 --> 00:00:11,340 a component in this lecture will get again into the modular component topics because I forgot to explain 3 00:00:11,340 --> 00:00:12,180 you about think. 4 00:00:13,380 --> 00:00:16,980 So let's start go to your model component. 5 00:00:16,980 --> 00:00:22,770 And I think I have forgot to explain you how you can pass custom components or custom elements into 6 00:00:22,770 --> 00:00:24,120 your model component. 7 00:00:24,930 --> 00:00:29,730 For example, here you can see the button to open the DS model. 8 00:00:30,020 --> 00:00:34,110 Well, we will implement is call to make a deal, right, which would open the model. 9 00:00:34,800 --> 00:00:38,250 But in our profile, we are calling it update info. 10 00:00:38,910 --> 00:00:42,630 And that's a default button we are displaying in our model model. 11 00:00:42,750 --> 00:00:46,920 Usable model in model, though the view here is update info button to open the model. 12 00:00:48,000 --> 00:00:52,380 But maybe I would like to have this part of the re-usable so I can pass it from outside. 13 00:00:52,380 --> 00:00:55,500 So a profile model, for example, like a puzzle or whatever button. 14 00:00:55,500 --> 00:00:57,330 I want the display to open the model. 15 00:00:57,330 --> 00:00:58,290 So how can I do it? 16 00:00:59,760 --> 00:01:04,380 We have already learned that we can pass elements to the components you can see here we are passing 17 00:01:04,380 --> 00:01:04,800 the form. 18 00:01:04,800 --> 00:01:10,110 In the end, we are passing the form that's received in our model view as a slot here. 19 00:01:10,440 --> 00:01:16,590 It will be rendered out here in the slot spot so we can do the same thing also with the multiple components, 20 00:01:16,590 --> 00:01:19,890 and we can begin specifically to get the variable to render them out. 21 00:01:20,790 --> 00:01:27,300 I'll show example go back to your profile model and let's say I would like to get here a different button 22 00:01:27,300 --> 00:01:34,150 to open a model for us to create a template instead of your wrapping component in there. 23 00:01:34,170 --> 00:01:38,850 It doesn't matter which is possible to create, it should be somewhere inside of the exchange model. 24 00:01:38,850 --> 00:01:40,950 So I'll do it after the forum. 25 00:01:41,640 --> 00:01:42,420 Let's see here. 26 00:01:43,230 --> 00:01:45,390 See the inset inside of the exchange model. 27 00:01:46,170 --> 00:01:54,930 I'll create a template just like this as you are creating normal templates template and I will provide 28 00:01:54,930 --> 00:02:00,510 here and the name for this template, you will do it to the to the hash symbol, letter symbol and call 29 00:02:00,540 --> 00:02:05,030 it as you want to activate or activate or better. 30 00:02:05,040 --> 00:02:09,540 For example, activate the robot or just simply activate or which will which will be on your button 31 00:02:09,540 --> 00:02:14,550 to open the model instead instead of this template or right here button. 32 00:02:16,290 --> 00:02:20,910 All right, and this will be my button to open to open the model. 33 00:02:20,970 --> 00:02:21,480 All right. 34 00:02:21,480 --> 00:02:23,460 So but I will write your custom class. 35 00:02:25,080 --> 00:02:29,160 OK, I'll of the same class and we have a model that we use to go to model the The View and this button 36 00:02:29,160 --> 00:02:29,970 class copy. 37 00:02:31,800 --> 00:02:35,760 Let's get it back here, and let's pass it to the class and we can do one small change. 38 00:02:35,760 --> 00:02:38,280 I'll move this class on the new line and also this bracket. 39 00:02:39,620 --> 00:02:44,240 And I will this will be a success, but its primary will be slightly different color, but the something, 40 00:02:44,240 --> 00:02:44,940 it's a primary. 41 00:02:44,960 --> 00:02:48,110 You can you can take these classes in a documentation. 42 00:02:48,140 --> 00:02:49,310 Everything is explained there. 43 00:02:50,890 --> 00:02:55,400 So this will be its primary, and the name of this will be, let's say, the liberal year. 44 00:02:55,450 --> 00:03:01,120 This is a custom button, custom custom button. 45 00:03:02,290 --> 00:03:04,690 And it's going to be also like. 46 00:03:06,960 --> 00:03:10,800 Like, these are actually that's up to you, how you could decide, OK, let's leave it, let's leave 47 00:03:10,800 --> 00:03:15,330 it for now, this way or just the clause on the same line, I think it's not that long. 48 00:03:16,470 --> 00:03:16,920 All right. 49 00:03:16,920 --> 00:03:20,010 So I mean, to the left at the right side, OK? 50 00:03:20,160 --> 00:03:21,870 So I think that's a it's alright. 51 00:03:22,080 --> 00:03:23,340 It's easier to right now. 52 00:03:25,310 --> 00:03:29,240 OK, so now they are passing this custom button, but this is Bill being able to get passed into the 53 00:03:29,240 --> 00:03:34,520 model will be not rendered out in a model deal because it'll specify here that we would like to displayed. 54 00:03:35,910 --> 00:03:41,580 So now, whenever you want to display these activator template, you will go to your model and you will 55 00:03:41,580 --> 00:03:46,050 find a spot variable like displayed, so we want to display it instead of this button here, right? 56 00:03:46,830 --> 00:03:47,160 OK. 57 00:03:48,120 --> 00:03:49,350 Instead of this button here. 58 00:03:50,700 --> 00:03:59,610 So what you are going to do will create here another template like this, another template, and we'll 59 00:03:59,610 --> 00:04:04,500 check here if this slot is getting passed because not for every component, the we need to pass the 60 00:04:04,500 --> 00:04:08,640 custom open letter about them because sometimes we are happy with their custom button that be defined. 61 00:04:08,640 --> 00:04:15,690 So in such a case as we can right here, if all right and we can verify here like this, you have access 62 00:04:15,690 --> 00:04:21,450 to the object called the last time slots, and you can check for that the name of the template you have 63 00:04:21,690 --> 00:04:23,100 provided in your profile model. 64 00:04:23,110 --> 00:04:28,770 So if you are passing the slot activator here so they can check here every passing the slots activator, 65 00:04:28,770 --> 00:04:32,310 then we can render out this template and we can displayed. 66 00:04:33,030 --> 00:04:36,210 OK, so that we can write your slot as we had it before. 67 00:04:36,600 --> 00:04:39,940 But in this case, this will be your default slot, but this will be the slot with the name. 68 00:04:40,170 --> 00:04:41,580 What's your name like this? 69 00:04:42,150 --> 00:04:45,030 And they are calling it activator. 70 00:04:47,800 --> 00:04:53,380 OK, so now recapitulate the are passing our template, we are calling it activator, which will be 71 00:04:53,380 --> 00:04:55,510 our custom button before getting past the model. 72 00:04:55,780 --> 00:05:01,530 In an ideal check, if such as slots, slot exist, if it does, then at least play slot activator. 73 00:05:01,540 --> 00:05:06,160 So we can say this activator lame and this name with the hash has to match. 74 00:05:07,150 --> 00:05:08,110 Many will say it now. 75 00:05:08,110 --> 00:05:11,890 We will go back to your browser for this play to battle a custom button and update info. 76 00:05:12,700 --> 00:05:14,920 But of course, you want to display only one of them. 77 00:05:15,760 --> 00:05:16,900 So what they mean to do? 78 00:05:17,980 --> 00:05:23,320 If there's Vive, if there's no sports activities passed, then we don't need to display the button 79 00:05:23,320 --> 00:05:26,830 here so we can drop these button and become bigger vessels directive. 80 00:05:28,010 --> 00:05:32,930 OK, so if the activator is past bid on it, the default button, if it's this is not passed, then 81 00:05:32,930 --> 00:05:35,210 we then we need to be done with this play this. 82 00:05:37,130 --> 00:05:39,260 OK, so many of us said, now please save it. 83 00:05:40,890 --> 00:05:43,800 Go back to your browser will save all this polling custom battle. 84 00:05:44,620 --> 00:05:48,540 But of course, you cannot open a model because we don't have any click event on this custom button. 85 00:05:48,540 --> 00:05:49,950 We will fix it shortly. 86 00:05:50,980 --> 00:05:54,470 So somebody will this ad to product default button, you just need to do this. 87 00:05:54,480 --> 00:05:58,290 You will go to profile model and it will simply remove the template and this will display the default 88 00:05:58,290 --> 00:05:58,680 bottom. 89 00:06:00,200 --> 00:06:04,520 OK, you can see the full button here, but if you will decide I want to have my custom button in my 90 00:06:04,520 --> 00:06:07,760 model, I will just pass the template of the activator with a custom button. 91 00:06:10,310 --> 00:06:14,450 All right, and here it is, not only to just handle how you will open, it will be pretty straightforward. 92 00:06:15,550 --> 00:06:16,540 What I will do here. 93 00:06:17,020 --> 00:06:24,010 All right, we'll go to to our model, very dear colleague, but this no vote may be able to forget 94 00:06:24,010 --> 00:06:24,570 to show you. 95 00:06:24,670 --> 00:06:29,860 OK, so we can click and collect the vote to do the same thing, right? 96 00:06:29,860 --> 00:06:33,520 So they just want to open the model so this can stay is open equal to. 97 00:06:33,760 --> 00:06:35,830 So let's say it like this go back to your browser. 98 00:06:37,450 --> 00:06:42,850 And click it and you will see what it will not work because they cannot attach even to their slot. 99 00:06:43,900 --> 00:06:45,010 So what we need to do instead. 100 00:06:46,550 --> 00:06:55,640 We'll probably slot into the into the deep dive element like this, and we will provide the click on 101 00:06:55,640 --> 00:06:56,090 this day. 102 00:06:58,000 --> 00:06:58,750 To open it. 103 00:06:59,410 --> 00:07:01,990 OK, so he's open will be here through. 104 00:07:03,830 --> 00:07:04,960 OK, let's try it out now. 105 00:07:05,000 --> 00:07:07,610 Maybe this will also not work or not display. 106 00:07:07,640 --> 00:07:08,030 Let's see. 107 00:07:08,040 --> 00:07:11,030 Let's refresh and actually I could say the already said so it should work. 108 00:07:11,810 --> 00:07:14,060 Let me let me take a look. 109 00:07:15,040 --> 00:07:15,310 OK. 110 00:07:15,340 --> 00:07:18,100 Click here and you can see it Dvorak's as before. 111 00:07:18,280 --> 00:07:19,330 No changes here. 112 00:07:20,520 --> 00:07:25,590 OK, so now we have an option also to provide a custom button if you if you want. 113 00:07:27,290 --> 00:07:28,700 OK, so that's it. 114 00:07:28,760 --> 00:07:30,470 Let's continue in next year's. 11399

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