27 lines
No EOL
696 B
TypeScript
27 lines
No EOL
696 B
TypeScript
import util from "./util"
|
|
var _ = util._
|
|
|
|
export class MessageElement extends HTMLElement {
|
|
static observedAttributes = [ "data-target", "data-latest", "data-adapter", "data-replyCt", "data-reactionCt", "data-boostCt" ]
|
|
|
|
private _id: string | null = null;
|
|
private _adapter: string | null = null;
|
|
|
|
constructor() {
|
|
super();
|
|
}
|
|
|
|
connectedCallback() {
|
|
this._id = this.getAttribute("data-target");
|
|
this._adapter = this.getAttribute("data-adapter");
|
|
|
|
// grab message content from the store and format our innerHTML
|
|
}
|
|
|
|
attributeChangedCallback(attr: string, prev: string, next: string) {
|
|
switch (attr) {
|
|
case "data-target":
|
|
break;
|
|
}
|
|
}
|
|
} |