From 180d04eacdd50c3ada077a31156888cf200fbfbc Mon Sep 17 00:00:00 2001 From: Ayo Date: Sat, 7 Oct 2023 20:18:14 +0200 Subject: [PATCH] feat: add style and title --- public/components/hello-world.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public/components/hello-world.js b/public/components/hello-world.js index 280a187..b3976cf 100644 --- a/public/components/hello-world.js +++ b/public/components/hello-world.js @@ -12,6 +12,8 @@ export default class HelloWorld extends WebComponent { this.name = `I was clicked ${++count} times`; this.render(); }; + this.style.cursor = "pointer"; + this.setAttribute("title", "Click me please"); } get template() {