You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ca...@apache.org on 2014/02/27 02:24:35 UTC
git commit: [flex-asjs] [refs/heads/develop] - try to add binding in
List (commented) and add an horizontal footer of label and buttons
Repository: flex-asjs
Updated Branches:
refs/heads/develop 4c84ed33d -> 5ce613964
try to add binding in List (commented) and add an horizontal footer of label and buttons
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/5ce61396
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/5ce61396
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/5ce61396
Branch: refs/heads/develop
Commit: 5ce6139645b8eefef1a820999fc3b0cd2958b415
Parents: 4c84ed3
Author: Carlos Rovira <ca...@apache.org>
Authored: Thu Feb 27 02:24:26 2014 +0100
Committer: Carlos Rovira <ca...@apache.org>
Committed: Thu Feb 27 02:24:26 2014 +0100
----------------------------------------------------------------------
examples/TodoListSampleApp/src/model/TodoListModel.as | 2 ++
examples/TodoListSampleApp/src/view/TodoListView.mxml | 10 ++++++++++
2 files changed, 12 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5ce61396/examples/TodoListSampleApp/src/model/TodoListModel.as
----------------------------------------------------------------------
diff --git a/examples/TodoListSampleApp/src/model/TodoListModel.as b/examples/TodoListSampleApp/src/model/TodoListModel.as
index 04fb870..265424a 100644
--- a/examples/TodoListSampleApp/src/model/TodoListModel.as
+++ b/examples/TodoListSampleApp/src/model/TodoListModel.as
@@ -29,6 +29,8 @@ package model {
{title: "Do this", selected: true},
{title: "Do that", selected: false}
];
+
+ [Bindable]
public function get todos():Array {
return _todos;
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5ce61396/examples/TodoListSampleApp/src/view/TodoListView.mxml
----------------------------------------------------------------------
diff --git a/examples/TodoListSampleApp/src/view/TodoListView.mxml b/examples/TodoListSampleApp/src/view/TodoListView.mxml
index 9d30b74..c28b52d 100644
--- a/examples/TodoListSampleApp/src/view/TodoListView.mxml
+++ b/examples/TodoListSampleApp/src/view/TodoListView.mxml
@@ -35,6 +35,7 @@ limitations under the License.
<basic:List id="todoList"
itemRenderer="renderer.TodoItemRenderer"
width="300" height="400">
+ <!-- dataProvider="{TodoListModel(applicationModel).todos}" -->
<basic:beads>
<basic:ConstantBinding sourceID="applicationModel"
sourcePropertyName="todos"
@@ -42,6 +43,15 @@ limitations under the License.
</basic:beads>
</basic:List>
+ <basic:Container>
+ <basic:beads>
+ <basic:NonVirtualHorizontalLayout/>
+ </basic:beads>
+ <basic:Label text="2 items left"/>
+ <basic:TextButton text="all"/>
+ <basic:TextButton text="active"/>
+ <basic:TextButton text="completed"/>
+ </basic:Container>
</basic:Panel>
<fx:Style>