fix(core): update

This commit is contained in:
2021-08-25 13:51:55 +02:00
parent 0adb319616
commit 486b8cb6a6
9 changed files with 104 additions and 15 deletions

View File

@ -1,4 +1,10 @@
import { customElement, DeesElement, TemplateResult, property, html } from '@designestate/dees-element';
import {
customElement,
DeesElement,
TemplateResult,
property,
html,
} from '@designestate/dees-element';
import * as domtools from '@designestate/dees-domtools';
declare global {
@ -11,19 +17,29 @@ declare global {
export class DeesInputCheckbox extends DeesElement {
// STATIC
public static demo = () => html`<dees-input-checkbox></dees-input-checkbox>`;
// INSTANCE
public changeSubject = new domtools.rxjs.Subject();
@property()
@property({
type: String,
})
public key: string;
@property()
@property({
type: String,
})
public label: string = 'Label';
@property()
@property({
type: Boolean,
})
public value: boolean = false;
@property({
type: Boolean,
})
public required: boolean = false;
public render(): TemplateResult {
return html`