Web Component: j-LoadContent
j-LoadContent
The component loads a content from the template <script type="text/html">
and appends it into the element. It's a great solution for reusable content. Learn from example.
- jComponent
v19|v20
Configuration:
selector
{String}
a jQuery selector (it will use it for entire DOM)wait
{Number}
repeats finding of template in entered milliseconds (default:0
)replace
{String}
replaces entered pharses in the form:find1=replace1,find2=replace2
(default: empty)exec
{String}
a link to thefunction(element)
, it's executed after the template is loaded
Good to know:
- all
SCR
pharses will be replaced to thescript
phrase
Author
- Peter Širka petersirka@gmail.com
- License
Created
03. may 2022
Updated
31. january 2023
jComponent library
19 | 20
Version
v1
License
https://www.totaljs.com/license/
Responsive
Yes
Author
Peter Širka
Email
petersirka@gmail.com