0

I'm using a custom tabbar with the dataProvider being a viewstack and I'm trying to get the tab labels to update when data in the related container (in the viewstack) updates.

The viewstack's containers are bound to bindable vars, so if a var changes, the data/labels/etc in the container updates, but the tab doesn't.

Is there a way to bind the tab to the same bindable var or do i need to write event handlers (if so, what events)?

4

1 回答 1

0

看来我已经找到了答案。我没有正确更新选项卡在容器中侦听的标签和其他可绑定变量。我向容器绑定的变量添加了一个“propertyChange”事件侦听器,并让它的事件处理程序更新标签,标签又更新了选项卡。一切都很好。

于 2011-12-04T05:57:51.407 回答