Repository: flex-asjs
Updated Branches:
  refs/heads/develop 525e56546 -> f13dedc39


Shows only first row as in MDL web example


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

Branch: refs/heads/develop
Commit: f13dedc3902ddc9fa4fa5a38d22ebc31a9be61fa
Parents: 525e565
Author: Carlos Rovira <[email protected]>
Authored: Sun Dec 11 09:30:11 2016 +0100
Committer: Carlos Rovira <[email protected]>
Committed: Sun Dec 11 09:30:11 2016 +0100

----------------------------------------------------------------------
 .../AvatarAndActionTwoLineListItemRenderer.mxml             | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f13dedc3/examples/flexjs/MDLExample/src/main/flex/itemRenderers/AvatarAndActionTwoLineListItemRenderer.mxml
----------------------------------------------------------------------
diff --git 
a/examples/flexjs/MDLExample/src/main/flex/itemRenderers/AvatarAndActionTwoLineListItemRenderer.mxml
 
b/examples/flexjs/MDLExample/src/main/flex/itemRenderers/AvatarAndActionTwoLineListItemRenderer.mxml
index 4b4b9fc..1c4badd 100644
--- 
a/examples/flexjs/MDLExample/src/main/flex/itemRenderers/AvatarAndActionTwoLineListItemRenderer.mxml
+++ 
b/examples/flexjs/MDLExample/src/main/flex/itemRenderers/AvatarAndActionTwoLineListItemRenderer.mxml
@@ -32,6 +32,13 @@ limitations under the License.
             {
                 return data as ActorVO;
             }
+
+            override public function set data(value:Object):void
+                   {
+                super.data = value;
+
+                if(index == 0) ir.visible=true;
+            }
                ]]>
        </fx:Script>
 
@@ -56,7 +63,7 @@ limitations under the License.
         <mdl:beads>
             <mdl:ListItemSecondaryContent/>
         </mdl:beads>
-        <js:Span text="Actor">
+        <js:Span id="ir" visible="false" text="Actor">
             <mdl:beads>
                 <mdl:ListItemSecondaryInfo/>
             </mdl:beads>

Reply via email to