feat: update component to button
This commit is contained in:
parent
f6ed8ead7b
commit
c7cd0cad0a
1 changed files with 1 additions and 2 deletions
|
@ -12,11 +12,10 @@ export default class HelloWorld extends WebComponent {
|
||||||
this.name = `I was clicked ${++count} times`;
|
this.name = `I was clicked ${++count} times`;
|
||||||
this.render();
|
this.render();
|
||||||
};
|
};
|
||||||
this.style.cursor = "pointer";
|
|
||||||
this.setAttribute("title", "Click me please");
|
this.setAttribute("title", "Click me please");
|
||||||
}
|
}
|
||||||
|
|
||||||
get template() {
|
get template() {
|
||||||
return `Hello ${this.name}! <small>I am interactive</small>`;
|
return `<button style="cursor:pointer">Hello ${this.name}!</button>`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue