From 8e58ea4b58c1ed84e162c27c3a8adbdabcaae226 Mon Sep 17 00:00:00 2001
From: Brandy Carney
Date: Thu, 12 Jul 2018 16:41:31 -0400
Subject: [PATCH] test(button): add a dynamically disabled button to the basic
test
---
core/src/components/button/test/basic/index.html | 16 +++++++++++++++-
1 file changed, 15 insertions(+), 1 deletion(-)
diff --git a/core/src/components/button/test/basic/index.html b/core/src/components/button/test/basic/index.html
index 527af6af6b..be2b7a3520 100644
--- a/core/src/components/button/test/basic/index.html
+++ b/core/src/components/button/test/basic/index.html
@@ -70,10 +70,14 @@
- Button Disabled
+ Button Disabled
Secondary Disabled
+
+ Toggle Disabled
+
+
Change Color
Change Color
@@ -98,6 +102,16 @@
el.color = newColor;
}
+
+ function toggleDisabled() {
+ var buttonEl = this.document.getElementById('disabledButton');
+ console.log(buttonEl);
+ buttonEl.disabled = !buttonEl.disabled;
+ }
+
+ function clickedButton(ev) {
+ console.log("Clicked button", ev);
+ }