Add custom HTML Elements for icons/SVG loading
This commit is contained in:
parent
0fcf24bfcb
commit
361ddfb7b6
7 changed files with 255 additions and 0 deletions
11
module/apps/elements/Icon.mjs
Normal file
11
module/apps/elements/Icon.mjs
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
import { TafSVGLoader } from "./svgLoader.mjs";
|
||||
|
||||
/**
|
||||
Attributes:
|
||||
@property {string} name - The name of the icon, takes precedence over the path
|
||||
@property {string} path - The path of the icon file
|
||||
*/
|
||||
export class TafIcon extends TafSVGLoader {
|
||||
static elementName = `taf-icon`;
|
||||
static _stylePath = `icon.css`;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue