HTML Template Tag - HTML5 & JavaScript - Part 8

HTML Template Tag - HTML5 & JavaScript - Part 8

25,153 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@kaushalnishad4823
@kaushalnishad4823 - 26.04.2023 13:44

great job

Ответить
@michaelmagill5466
@michaelmagill5466 - 01.04.2023 05:36

If you're pulling the data from a cell in a spreadsheet that only you have access to, you can also generate a new table within the spreadsheet using index/arrayformula across every cell and reformatting them with html syntax, and then just loop through those cells when you need them, for example if you're creating a table on your web app. I think it's better practice to do it this way but doing it the other way saves on processing time. Though I don't know by how much, only that it simplifies the loop code quite a bit.

Ответить
@ohiwantyoutobelieve
@ohiwantyoutobelieve - 09.11.2022 15:55

Very well explained, tyvm

Ответить
@Nasir127sb
@Nasir127sb - 24.07.2022 19:28

best information

Ответить
@pawandeore8291
@pawandeore8291 - 27.03.2022 17:43

much needed

Ответить
@alirashid2679
@alirashid2679 - 01.03.2022 19:40

great tutorial!

Ответить
@toma1610
@toma1610 - 22.10.2021 23:07

But who wants to repeat same content on one same page? I expected something like a navigation bar with a log which can be replicated all 150 pages and if i want to change something in the nav bar I just change one file or one line of code.

Ответить
@nicolasbonilla2155
@nicolasbonilla2155 - 08.10.2021 22:17

can i use a template inside a template?

Ответить
@galamarciriebi4247
@galamarciriebi4247 - 14.09.2021 00:29

thank u for all GOD bless u

Ответить
@cryptolicious3738
@cryptolicious3738 - 22.05.2021 21:55

cool video, how do u use regex to replace IDs in many parts of the html template like cartitemID with cartitem2 for example. this has been a unclear mess getting it as a string to run regexs n back to a element node i can then add to doc

Ответить
@amsoco
@amsoco - 30.04.2021 01:09

You are very good! the way you explained this topic is much, much better than anyone else on the internet! Thank you very much

Ответить
@najmantube
@najmantube - 06.03.2021 16:33

A very clear explanation - thank you

Ответить
@otom8872
@otom8872 - 03.01.2021 22:16

So helpful, thanks man!

Ответить
@ragtop63
@ragtop63 - 09.10.2020 03:16

This is very interesting. I'm trying to figure out how to use this for dynamic content.
For instance, say I have a table with 5 headers. The content of each row is dynamic and does not exist until an action from the user is performed (a button click or something that initiates some JS that parses data from an external source (another website or something) and places its findings in an array of strings). That array is then used to create the contents of the table data (embedded in a <tbody> element). Would using the <template> element apply to this type of scenario?

Ответить
@cristianrosas8674
@cristianrosas8674 - 02.10.2020 02:30

Thanks dude, it really help me to understand :D

Ответить
@phoenixempire8886
@phoenixempire8886 - 09.09.2020 12:26

🙏🏻

Ответить
@kanhajain3028
@kanhajain3028 - 18.06.2020 07:20

We can also use template strings in js to make that template code. It's just like writing the html code as a js string and changing the INNERHTML of any element to that string. I think it's more dynamic, as you can set ids dynamically and all at one place. ( template strings are strings written between back ticks ``)

Ответить
@ravemanlex
@ravemanlex - 06.05.2020 05:15

Hi, is it possible to update the contents inside the template tag dynamically?

Ответить
@user-cv9ik6iv3q
@user-cv9ik6iv3q - 24.10.2019 16:20

so good

Ответить
@fvgoya
@fvgoya - 24.10.2019 01:59

Man, this is a really good concept!! Of course template is not new. But the way that you made, was nice. To make even better, we can create a function and using something like something(“class-name”, “content”) or even passing an away. Anyway, good insights from this video. Thanks!!

Ответить