All language subtitles for 8. Updating Our State After a Click Event

af Afrikaans
ak Akan
sq Albanian
am Amharic
ar Arabic
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

Original subtitles

In this video.

What we're going to do is very simply start updating the state when we click on a particular button.

So this should be relatively easy to accomplish.

So what I'm going to do here is let's just start off with this button right here.

When you click on this button, we should change the gender from gendered girl to gender.

Boy.

So let's go ahead and do that.

So we're going to go ahead and add this at Click.

So at Click Event Listener.

And as soon as we click, what we want to do is we want to grab the options.

We're going to say options.

So options like so we're going to say dot gender.

We're going to say that that is going to be equal to gender.

Dot boy.

And that's pretty much all it is that we need to do.

So what this should do is actually change the state and thus the background color.

Let's give this a quick test.

And well, it actually changed this state over here.

However, this background color has not changed.

So another reason for that is because it's boy capital like so.

So just refresh that.

And now there we go.

Now it's working the way they'll be expected to.

So just go ahead and copy this a few times.

And this time we're going to say, you need sex for this or you need sex.

And for this, we're going to say, girl.

And then let's scroll down a little bit more.

And over here this time, we're going to change the popularity.

So popularity we're going to say that this is going to be popularity dot trendy.

Let's go ahead and copy that.

And then over here we're going to say unique.

Okay.

And over here, I think we should have this as three, not as two, because I believe this is two.

So right over here, let's go ahead and copy this once more.

This time, we're going to change the length.

So we're going to say options dot length.

It's going to be the length that long.

Let's go ahead and copy that.

One more time.

We're going to say over here.

Options dot length.

This is going to be all.

And the last thing is shorts.

So this should change our state the way that well, we intended to.

So if we go over here now, we have the option to just click on whatever it is that we want and it will

change the state as well as the background colors.

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