@daucus/html-loader
TypeScript icon, indicating that this package has built-in type declarations

0.4.1 • Public • Published

@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

Readme

Keywords

none

Package Sidebar

Install

npm i @daucus/html-loader

Weekly Downloads

4

Version

0.4.1

License

MIT

Unpacked Size

27.4 kB

Total Files

26

Last publish

Collaborators

  • noelmace