Updated ListsExample to use itemRenderer property on List element.
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/457e2db5 Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/457e2db5 Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/457e2db5 Branch: refs/heads/develop Commit: 457e2db51000bece6bfceea8599ff24668c2a43d Parents: 74b671a Author: Peter Ent <p...@apache.org> Authored: Wed Jan 8 14:06:58 2014 -0500 Committer: Peter Ent <p...@apache.org> Committed: Wed Jan 8 14:06:58 2014 -0500 ---------------------------------------------------------------------- examples/ListsTest/src/FirstView.mxml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/457e2db5/examples/ListsTest/src/FirstView.mxml ---------------------------------------------------------------------- diff --git a/examples/ListsTest/src/FirstView.mxml b/examples/ListsTest/src/FirstView.mxml index ff1943b..7c480a6 100644 --- a/examples/ListsTest/src/FirstView.mxml +++ b/examples/ListsTest/src/FirstView.mxml @@ -34,7 +34,9 @@ limitations under the License. @namespace basic "library://ns.apache.org/flexjs/basic"; @namespace sample "products.*"; - + /* use className="productList" on the List element in place of itemRenderer if you want to specify + * the itemRenderer in a style definition along with other settings. + */ .productList { IDataProviderItemRendererMapper: ClassReference("org.apache.flex.html.staticControls.beads.DataItemRendererFactoryForArrayData"); IItemRenderer: ClassReference("products.ProductItemRenderer"); @@ -47,7 +49,7 @@ limitations under the License. </fx:Style> - <basic:List id="productList" x="20" y="20" width="200" height="150" className="productList" change="handleListChange()"> + <basic:List id="productList" itemRenderer="products.ProductItemRenderer" x="20" y="20" width="200" height="150" change="handleListChange()"> <basic:beads> <basic:ConstantBinding sourceID="applicationModel"