Repository: flex-asjs Updated Branches: refs/heads/feature/FLEX-35328_simplify_mdl_drop_down_list 4b6de1691 -> 2fc506e62
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/feature/FLEX-35328_simplify_mdl_drop_down_list Commit: 2fc506e626afc39b1cef546714d151a4f3463633 Parents: 4b6de16 Author: piotrz <pio...@apache.org> Authored: Sat Jun 24 16:42:29 2017 +0200 Committer: piotrz <pio...@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