flex - Show/Hide button inside grid item renderer -
i created custom grid header renderer (subclass of griditemrenderer, spark). in it, have button want hidden or shown, based on flag coming outside grid , not part of dataprovider. whats best way send message hide or show it? more of design question guess. cant use messages using ioc framework parsley itemrenderer. creating singleton manage button's visibility state way? thinking if there way expose button skin how skinnablecontainer works , there can manage more easily.
in itemrenderer...make 1 setter visible button or not.....
[bindable] private var _isbtnvisible:boolean; public function set isbtnvisible(value:boolean):void { _isbtnvisible = value; } <s:button visible="{_isbtnvisible}" />
and set "isbtnvisible" variable datagrid...
<s:datagrid isbtnvisible={obj.visible} />
try this....hope you....
Comments
Post a Comment