diff --git a/examples/widgets/index.sky b/examples/widgets/index.sky index d4e55c0d10..98b0ab47a4 100644 --- a/examples/widgets/index.sky +++ b/examples/widgets/index.sky @@ -25,7 +25,10 @@ } - + + +
value = {{ inputValue }}
+
Button @@ -37,7 +40,8 @@
Checkbox
highlight: {{ myCheckbox.highlight }}
checked: {{ myCheckbox.checked }}
-
Checkbox, default checked.
+
Checkbox, default checked.
+
checked: {{ checked }}
@@ -61,6 +65,8 @@ module.exports = class extends SkyElement { this.myCheckbox = null; this.myText = null; this.clickCount = 0; + this.inputValue = "Ready"; + this.checked = false; } attached() { this.myButton = this.shadowRoot.getElementById('button'); @@ -70,7 +76,8 @@ module.exports = class extends SkyElement { } handleClick(event) { this.clickCount++; - this.myText.value = "Moar clicking " + this.clickCount; + this.checked = !this.checked; + this.inputValue = "Moar clicking " + this.clickCount; } }.register();