flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pio...@apache.org
Subject git commit: [flex-asjs] [refs/heads/develop] - Update MDLExample with presentation of selectedValue in MDL DropDownList
Date Thu, 29 Jun 2017 19:55:19 GMT
Repository: flex-asjs
Updated Branches:
  refs/heads/develop f4d28a6d8 -> 0636f5755


Update MDLExample with presentation of selectedValue in MDL DropDownList


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/0636f575
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/0636f575
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/0636f575

Branch: refs/heads/develop
Commit: 0636f5755733c48d74cb76397a27dafad38a717c
Parents: f4d28a6
Author: piotrz <piotrz@apache.org>
Authored: Thu Jun 29 21:55:14 2017 +0200
Committer: piotrz <piotrz@apache.org>
Committed: Thu Jun 29 21:55:14 2017 +0200

----------------------------------------------------------------------
 examples/flexjs/MDLExample/src/main/flex/DropDownList.mxml | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/0636f575/examples/flexjs/MDLExample/src/main/flex/DropDownList.mxml
----------------------------------------------------------------------
diff --git a/examples/flexjs/MDLExample/src/main/flex/DropDownList.mxml b/examples/flexjs/MDLExample/src/main/flex/DropDownList.mxml
index 4231328..8dcf568 100644
--- a/examples/flexjs/MDLExample/src/main/flex/DropDownList.mxml
+++ b/examples/flexjs/MDLExample/src/main/flex/DropDownList.mxml
@@ -49,11 +49,15 @@ limitations under the License.
             <js:Label id="selectedItemChange"
                       text="Selected item on 'change' event: "/>
         </mdl:GridCell>
+        <mdl:GridCell columnDesktop="12">
+            <js:Label id="selectedValue"
+                      text="{'Selected value: ' + dropDownList.selectedValue}"/>
+        </mdl:GridCell>
     </mdl:Grid>
     <fx:Script><![CDATA[        
         public function onDplChange(event:Event):void
         {
-            selectedItemChange.text = "Selected item on 'change' event:" + dropDownList.selectedItem.label;
+            selectedItemChange.text = "Selected item on 'change' event: " + dropDownList.selectedItem.label;
         }
         ]]></fx:Script>
 </mdl:TabBarPanel>
\ No newline at end of file


Mime
View raw message