I noticed TabPane.onSelect is never fired when a tab is selected. Looking at TabPeer I see this:
elem.onmousedown = function() { $self.m_parent.peer.m_selectedIndex = $self.peer.index; $self.m_parent.relayout(); }
Can we add the event firing for the TabPane?
Yeah I can take a look
Also, TabPane.tabs in Js is giving me a cast error:
Uncaught sys::CastErr: fwt::Widget[] cannot be cast to fwt::Tab[] sys.js:12548 fan.sys.ObjUtil.coerce sys.js:12548 fan.fwt.TabPane.tabs fwt.js:9917
I can just use TabPane.children but this does break some other functionality of the TabPane.
Login or Signup to reply.
Jeremy Criquet Tue 11 Nov 2014
I noticed TabPane.onSelect is never fired when a tab is selected. Looking at TabPeer I see this:
Can we add the event firing for the TabPane?
andy Tue 11 Nov 2014
Yeah I can take a look
Jeremy Criquet Tue 11 Nov 2014
Also, TabPane.tabs in Js is giving me a cast error:
I can just use TabPane.children but this does break some other functionality of the TabPane.