diff --git a/examples/widgets/index.sky b/examples/widgets/index.sky index 88e63ce206..d102f85baf 100644 --- a/examples/widgets/index.sky +++ b/examples/widgets/index.sky @@ -16,8 +16,9 @@ - Button + Button highlight: {{ myButton.highlight }} + clickCount: {{ clickCount }} @@ -47,6 +48,10 @@ module.exports = class extends SkyElement { attached() { this.myButton = this.shadowRoot.getElementById('button'); this.myCheckbox = this.shadowRoot.getElementById('checkbox'); + this.clickCount = 0; + } + handleClick(event) { + this.clickCount++; } }.register();