ui : member card

This commit is contained in:
simon louvet
2018-11-21 14:05:56 +01:00
parent 3e91d94a08
commit ddad1d7d0f
5 changed files with 47 additions and 76 deletions

View File

@ -53,28 +53,12 @@ document.addEventListener('WebComponentsReady', function(event) {
}
customElements.define('hdapp-usercell', HDAppCell);
class HDAppClient extends SIBWidget {
class HDAppMail extends SIBWidget {
get template() {
return `<div>${this.value}</div>`;
return `<a href="mailto:${this.value}"><div class="icon-envelope"></div><div>SEND A MESSAGE</div></a>`;
}
render() {
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);
customElements.define('hdapp-mail', HDAppMail);
class HDAppMember extends SIBWidget {
get template() {