Комментарии:
great job
Ответить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.
ОтветитьVery well explained, tyvm
Ответитьbest information
Ответитьmuch needed
Ответитьgreat tutorial!
Ответить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.
Ответитьcan i use a template inside a template?
Ответитьthank u for all GOD bless u
Ответить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
ОтветитьYou are very good! the way you explained this topic is much, much better than anyone else on the internet! Thank you very much
ОтветитьA very clear explanation - thank you
ОтветитьSo helpful, thanks man!
Ответить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?
Thanks dude, it really help me to understand :D
Ответить🙏🏻
Ответить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 ``)
ОтветитьHi, is it possible to update the contents inside the template tag dynamically?
Ответитьso good
Ответить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!!
Ответить