From 46e17b9496a8f2a6300fa8789ea4e43191d29351 Mon Sep 17 00:00:00 2001 From: Victor Woeltjen Date: Thu, 15 Jan 2015 15:45:19 -0800 Subject: [PATCH] [Forms] Handle disabled state generally Handle disabled state for items in a toolbar generally, instead of only in buttons. WTD-684. --- example/forms/src/ExampleFormController.js | 3 ++- platform/forms/res/templates/controls/button.html | 2 +- platform/forms/res/templates/toolbar.html | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/example/forms/src/ExampleFormController.js b/example/forms/src/ExampleFormController.js index 99af83456e..5534d26459 100644 --- a/example/forms/src/ExampleFormController.js +++ b/example/forms/src/ExampleFormController.js @@ -1,4 +1,4 @@ -/*global define*/ +/*global define,window*/ define( [], @@ -21,6 +21,7 @@ define( description: "X coordinate", control: "textfield", pattern: "^\\d+$", + disabled: true, size: 2, key: "x" }, diff --git a/platform/forms/res/templates/controls/button.html b/platform/forms/res/templates/controls/button.html index 879dd22ce7..730a67dd8b 100644 --- a/platform/forms/res/templates/controls/button.html +++ b/platform/forms/res/templates/controls/button.html @@ -1,6 +1,6 @@ {{structure.glyph}} diff --git a/platform/forms/res/templates/toolbar.html b/platform/forms/res/templates/toolbar.html index 49ac754421..17602268d8 100644 --- a/platform/forms/res/templates/toolbar.html +++ b/platform/forms/res/templates/toolbar.html @@ -15,9 +15,10 @@ {{item.name}}: