UNPKG

@stilljs/core

Version:

![NPM Version](https://img.shields.io/npm/v/%40stilljs%2Fcore) ![NPM Downloads](https://img.shields.io/npm/d18m/%40stilljs%2Fcore) ![jsDelivr hits (npm)](https://img.shields.io/jsdelivr/npm/hy/%40stilljs%2Fcore) ![YouTube Channel Views](https://img.shield

29 lines (22 loc) 691 B
import { $stillconst } from "../../setup/constants.js"; import { BaseComponent } from "./BaseComponent.js"; export class ViewComponent extends BaseComponent { htmlRefId; constructor({ parent } = { parent: null }) { super(); } getTemplate() { this.beforeInit(); let template = this.getBoundTemplate(); const cmpUnicClass = this.getUUID(); const loadCmpClass = $stillconst.ANY_COMPONT_LOADED; //Add class wrapper template = ` <span class="${cmpUnicClass} ${loadCmpClass}"> ${template} </span> `; return template; } } window.ViewComponent = ViewComponent;