wcb/examples/demo/BooleanPropTest.mjs
2023-12-08 14:45:12 +01:00

11 lines
333 B
JavaScript

import { WebComponent } from "../../src";
export class BooleanPropTest extends WebComponent {
static properties = ["is-inline", "anotherone"];
get template() {
return `<p>is-inline: ${this.props.isInline}</p><p>another-one: ${this.props.anotherone}</p>`;
}
}
customElements.define("boolean-prop-test", BooleanPropTest);