fix(core): update
This commit is contained in:
parent
a322c9a929
commit
d5872511b8
18
ts/index.ts
18
ts/index.ts
@ -7,20 +7,32 @@ export {
|
||||
TemplateResult,
|
||||
internalProperty,
|
||||
css,
|
||||
unsafeCSS
|
||||
unsafeCSS,
|
||||
} from 'lit-element';
|
||||
|
||||
export class DeesElement extends plugins.litElement.LitElement {
|
||||
@plugins.litElement.property({type: Boolean})
|
||||
@plugins.litElement.property({ type: Boolean })
|
||||
public goBright: boolean = false;
|
||||
|
||||
// domtools
|
||||
public domtoolsPromise = plugins.domtools.elementBasic.setup(this);
|
||||
|
||||
@plugins.litElement.property()
|
||||
domtools?: plugins.domtools.DomTools;
|
||||
|
||||
private themeSubscription: plugins.smartrx.rxjs.Subscription;
|
||||
|
||||
constructor() {
|
||||
super();
|
||||
this.domtoolsPromise.then((domtoolsArg) => {
|
||||
this.domtools = domtoolsArg;
|
||||
});
|
||||
}
|
||||
|
||||
public connectedCallback() {
|
||||
super.connectedCallback();
|
||||
this.domtoolsPromise.then(async (domtools) => {
|
||||
this.themeSubscription = domtools.themeManager.themeObservable.subscribe(goBrightArg => {
|
||||
this.themeSubscription = domtools.themeManager.themeObservable.subscribe((goBrightArg) => {
|
||||
this.goBright = goBrightArg;
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user