开发者

How can I implement a itemRenderer on my MenuBar in Flex 4?

开发者 https://www.devze.com 2023-02-16 02:14 出处:网络
I\'m trying to make a menubar with an itemrenderer of linkbuttons. How could I go by doing this? Here is what my code looks like so far, but I can\'t seem to get 开发者_如何学运维it working.

I'm trying to make a menubar with an itemrenderer of linkbuttons. How could I go by doing this? Here is what my code looks like so far, but I can't seem to get 开发者_如何学运维it working.

<mx:MenuBar id="menuBar" labelField="@label" dataProvider="{menus}" itemRenderer="mx.controls.LinkButton">

</mx:MenuBar>


Use the MenuBarItemRenderer property instead of itemRenderer, which is not defined on the MenuBar class and will most likely throw a compile time error.

If that is not your solution, you'll have to quantify "can't seem to get it working." Are you seeing a compile errors? Or runtime error? Or experiencing unexpected behavior?

0

精彩评论

暂无评论...
验证码 换一张
取 消