@daucus/html-loader
Conceived for Daucus, but can also be used independently.
📖 Documentation
Web Components
html-loader
Load and render remote HTML template files
Properties
Property |
Attribute |
Modifiers |
Type |
Description |
fallback |
fallback |
readonly |
string |
Default template's URL |
href |
href |
|
string |
Template's URL |
Methods
Method |
Type |
Description |
staticContent |
`(nodeOrString?: string |
Node |
Events
Event |
Type |
Description |
html-loaded |
CustomEvent<{ href: string; }> |
HTML template successfully loaded |
html-loading-error |
|
An error occured when trying to load an HTML template |
html-reset |
CustomEvent<any> |
Element's content reset |