Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Trusted Contributor
Mitch99
Posts: 102
Registered: ‎05-09-2013
My Device: BB10 Z10
My Carrier: Virgin

TabbedPane activation signal

I have a simple set up of several pages organized in a TabbedPane structure. Is there a signal on the page level that would be sent when the particular page is activated and transitioned into view using Tab's onTriggered signal?

 

(onPeekEnded and on PeekStarted are not what I'm looking for... )

Please use plain text.
Retired
PBernhardt
Posts: 749
Registered: ‎12-16-2008
My Device: BlackBerry Z30
My Carrier: Bell

Re: TabbedPane activation signal

What about the TabPane's activePaneChanged signal?

Paul Bernhardt
Application Development Consultant
BlackBerry
@PBernhardt

Did this answer your question? Please accept this post as the solution.
Found a bug? Report it to the Developer Issue Tracker
Please use plain text.
Trusted Contributor
Mitch99
Posts: 102
Registered: ‎05-09-2013
My Device: BB10 Z10
My Carrier: Virgin

Re: TabbedPane activation signal

I was hoping to have the signal on Page level...

 

activePaneChanged might work, but I'm unsure what its activePane parameter represents...  a handle to the page? How do I acces it?

 

This is similar to onActiveTabChanged with activeTab parameter, where activeTab is the tab that was selected... but what its the activePane in this case?

Please use plain text.
Developer
Zmey
Posts: 1,512
Registered: ‎12-18-2012
My Device: PlayBook, Z10, DAC

Re: TabbedPane activation signal

[ Edited ]

activePane will hold the page or another element which was used for the tab. If you need a callback on page level, I think you can define a JavaScript function on these pages:

 

Page
{
  function pageBecameActive()
  {
    ...
  }

 And call it from onActivePaneChanged:

 

onActivePaneChanged: {
  activePane.pageBecameActive()
}

 I haven't tried this, but most likely it will work.

 

upd: might need to check if function exists:

if (activePane.pageBecameActive)
  activePane.pageBecameActive()

 

 


Andrey Fidrya, @zmeyc on twitter
Please use plain text.