Add custom elements
This commit is contained in:
parent
c7541db1d9
commit
e8bf135424
5 changed files with 205 additions and 1 deletions
11
module/apps/elements/Icon.mjs
Normal file
11
module/apps/elements/Icon.mjs
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
import { OFTSVGLoader } 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 OFTIcon extends OFTSVGLoader {
|
||||
static elementName = `oft-icon`;
|
||||
static _stylePath = `icon.css`;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue