flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ha...@apache.org
Subject [09/29] git commit: [flex-asjs] [refs/heads/tlf] - FLEX-35328 - Adjust MDLExample layout in DropDownList tab
Date Mon, 03 Jul 2017 13:33:06 GMT
FLEX-35328 - Adjust MDLExample layout in DropDownList tab


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

Branch: refs/heads/tlf
Commit: 2fc506e626afc39b1cef546714d151a4f3463633
Parents: 4b6de16
Author: piotrz <piotrz@apache.org>
Authored: Sat Jun 24 16:42:29 2017 +0200
Committer: piotrz <piotrz@apache.org>
Committed: Sat Jun 24 16:42:29 2017 +0200

----------------------------------------------------------------------
 .../MDLExample/src/main/flex/DropDownList.mxml  | 32 ++++++++++++--------
 1 file changed, 20 insertions(+), 12 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/2fc506e6/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 72aa9e9..a50413a 100644
--- a/examples/flexjs/MDLExample/src/main/flex/DropDownList.mxml
+++ b/examples/flexjs/MDLExample/src/main/flex/DropDownList.mxml
@@ -28,18 +28,26 @@ limitations under the License.
     <mdl:model>
         <models:MenuModel id="menuModel"/>
     </mdl:model>
-    <mdl:Grid width="100">
-      <mdl:DropDownList id="dropDownList" labelField="label" width="150" change="onDplChange(event)">
-          <mdl:beads>
-              <js:ConstantBinding
-                      sourceID="menuModel"
-                      sourcePropertyName="menuItems"
-                      destinationPropertyName="dataProvider" />
-          </mdl:beads>
-      </mdl:DropDownList>
-        <js:Label text="Selected index: {dropDownList.selectedIndex}"/>
-        <js:Label id="selectedItemChange"
-                  text="Selected item on 'change' event: "/>
+    <mdl:Grid>
+        <mdl:GridCell columnDesktop="12">
+          <mdl:DropDownList id="dropDownList" labelField="label" width="150"
+                            selectedIndex="0"
+                            change="onDplChange(event)">
+              <mdl:beads>
+                  <js:ConstantBinding
+                          sourceID="menuModel"
+                          sourcePropertyName="menuItems"
+                          destinationPropertyName="dataProvider" />
+              </mdl:beads>
+          </mdl:DropDownList>
+        </mdl:GridCell>
+        <mdl:GridCell columnDesktop="12">
+            <js:Label text="Selected index: {dropDownList.selectedIndex}"/>
+        </mdl:GridCell>
+        <mdl:GridCell columnDesktop="12">
+            <js:Label id="selectedItemChange"
+                      text="Selected item on 'change' event: "/>
+        </mdl:GridCell>
     </mdl:Grid>
     <fx:Script><![CDATA[        
         public function onDplChange(event:Event):void


Mime
View raw message