ui : temp commit to test template
This commit is contained in:
@ -55,15 +55,24 @@ document.addEventListener('WebComponentsReady', function(event) {
|
||||
|
||||
class HDAppClient extends SIBWidget {
|
||||
get template() {
|
||||
return `<img name="${this.name}" src="${this.value.logo}"/>`;
|
||||
|
||||
return `<div>${this.value}</div>`;
|
||||
}
|
||||
|
||||
render() {
|
||||
store.get(this.value).then(value => {
|
||||
this._value = value;
|
||||
this.innerHTML = this.template;
|
||||
});
|
||||
this.innerHTML = this.template;
|
||||
}
|
||||
|
||||
// get template() {
|
||||
// return `<img name="${this.name}" src="${this.value.logo}"/>`;
|
||||
// }
|
||||
//
|
||||
// render() {
|
||||
// store.get(this.value).then(value => {
|
||||
// this._value = value;
|
||||
// this.innerHTML = this.template;
|
||||
// });
|
||||
// }
|
||||
}
|
||||
customElements.define('hdapp-client', HDAppClient);
|
||||
|
||||
|
Reference in New Issue
Block a user