ui : member card
This commit is contained in:
@ -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() {
|
||||
|
Reference in New Issue
Block a user