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
New Contributor
jayhuang75
Posts: 5
Registered: ‎07-07-2013
My Device: developer
Accepted Solution

Onload function

Hello Guys,

 

I just want to know if cascades have any function like Javascript windows.onload. I don't means that onCreationCompleted.

Because the  onCreationCompleted function just trigger once! 

 

ok let me show you a example.

 

I create a NavPane. I need some function every time pop() back and the function will be trigged. For me the  onCreationCompleted is not working like that way.

 

Any suggestion? need some help!

Developer
ekke
Posts: 1,566
Registered: ‎04-08-2010
My Device: Z10 (red Limited Edition), Q10, Z30
My Carrier: Telekom.de, O2, Vodafone

Re: Onload function

take a look at

 

onPopTransitionEnded()

-------------------------------------------------------------------------------
ekke (independent software architect, rosenheim, germany)

BlackBerry Elite Developer
BlackBerry Platinum Enterprise Partner
International Development Mobile Apps BlackBerry 10 Cascades
Cascades - Workshops / Trainings / Bootcamps

blog: http://ekkes-corner.org videos: http://www.youtube.com/user/ekkescorner http://vimeo.com/ekkescorner/videos
bb10-development: http://appbus.org Twitter: @ekkescorner
New Contributor
jayhuang75
Posts: 5
Registered: ‎07-07-2013
My Device: developer

Re: Onload function

Thank you so much for the quick replay! :smileyhappy:
Developer
sorout2009
Posts: 104
Registered: ‎08-23-2012
My Device: Blackberry Z10

Re: Onload function

You can override the default functionality of back button

 

paneProperties: NavigationPaneProperties {
backButton: ActionItem {
onTriggered: {
yourNavPaneID.pop();
}
}
}

Dharmender Singh
Developer
sorout2009
Posts: 104
Registered: ‎08-23-2012
My Device: Blackberry Z10

Re: Onload function

Great to hear from you that it solved your problem.
Feel free to press like if this solve your problem.
Dharmender Singh