import { IgniteElement } from './ignite-element.js'; import { IgniteTemplate, div, html, list, a, slot } from './ignite-template.js'; class Sheet extends IgniteElement { constructor() { super(); } get properties() { return { show: false, items: ["1", "2"], href: "www.google.com", name: "default content" }; } render() { return this.template .class(this.show) .child( new div( new html("

this is before

"), new list(this.items, (item) => { return new a(new html(`

${item}

`)).attribute("href", this.href) }), new html("

this is after

"), new html("

---- begin sheet's slot ----

"), new slot(this), new html("

---- end of slot ----

") ) ); } } class SheetTemplate extends IgniteTemplate { constructor(...items) { super(items); this.tagName = "md-sheet"; } } customElements.define("md-sheet", Sheet); export { SheetTemplate as Sheet };