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/tlf
Commit: 0636f5755733c48d74cb76397a27dafad38a717c
Parents: f4d28a6
Author: piotrz <pio...@apache.org>
Authored: Thu Jun 29 21:55:14 2017 +0200
Committer: piotrz <pio...@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

Reply via email to