Initial commit

This commit is contained in:
Ian Richardson
2019-02-23 14:04:55 -06:00
parent 10d53c154c
commit 5a6297f975
7 changed files with 123 additions and 0 deletions
+43
View File
@@ -0,0 +1,43 @@
import {
LitElement,
html,
customElement,
property,
CSSResult,
TemplateResult,
css
} from "lit-element";
interface BOILERPLATEConfig {
type: string;
}
@customElement("BOILERPLATE-card")
class BOILERPLATECard extends LitElement {
@property() public hass?: any;
@property() private _config?: BOILERPLATEConfig;
public setConfig(config: BOILERPLATEConfig): void {
if (!this._config) {
// TODO Log error
}
this._config = config;
}
protected render(): TemplateResult {
return html`
<div>BOILERPLATE</div>
`;
}
static get styles(): CSSResult {
return css``;
}
}
declare global {
interface HTMLElementTagNameMap {
"BOILERPLATE-card": BOILERPLATECard;
}
}