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

Web and WebWorks Development

Reply
Contributor
Posts: 11
Registered: ‎02-22-2014
My Device: Z10
My Carrier: Blazedream Technologies

peek effect for bb10 webworks applicaion

I am new to webworks development.i want to implement peek effect in my application

 

I have 3 pages

home.html

list.html

detail.html

 

kept back button in list.html and detail.html pages,

 

If i click back button in list page,i have to implement peek effect swipe from left to right.

 

can anyone pls help me how to implement this with functionallity with proper steps,

 i am trying this with past 2 weeks,cant get any idea.

Developer
Posts: 164
Registered: ‎11-27-2012
My Device: Z10 LE,Dev Alpha C
My Carrier: China Mobile

Re: peek effect for bb10 webworks applicaion

Hi I'm looking for the same solution these days and here's two possible solutions:

1, implement your app as invokable card ( there's a bad example here: https://github.com/blackberry/BB10-WebWorks-Samples/tree/master/Invocation ) , refer to this document : http://developer.blackberry.com/html5/apis/v2_0/blackberry.invoked.html there's peek support but I haven't make it run.

 

2, wait for bbui team to complete the navigation pane support. refer :

https://github.com/blackberry/bbUI.js/issues/933

https://github.com/blackberry/bbUI.js/issues/934

 

BlackBerry Cascades / WebWorks developer, Vendor name: anpho
Highlighted
Contributor
Posts: 11
Registered: ‎02-22-2014
My Device: Z10
My Carrier: Blazedream Technologies

Re: peek effect for bb10 webworks applicaion

i have implemented the following code:

document.addEventListener("touchstart",function(event){                             
 },false);
 document.addEventListener('touchmove',function(event){
 blackberry.invoked.cardStartPeek("root");
 }, false);
  document.addEventListener("onCardClosed",function(event){
  }, false);

 

but there is no peek effect.


I have refered all the link which you have mentioned,but no solution.

 

Please help me out

Developer
Posts: 164
Registered: ‎11-27-2012
My Device: Z10 LE,Dev Alpha C
My Carrier: China Mobile

Re: peek effect for bb10 webworks applicaion

well , I said I haven't make it run yet.
needs some blackberry stuff to explain.
BlackBerry Cascades / WebWorks developer, Vendor name: anpho
Contributor
Posts: 11
Registered: ‎02-22-2014
My Device: Z10
My Carrier: Blazedream Technologies

Re: peek effect for bb10 webworks applicaion

Thanks for your reply,

 

If you get to know any solution please post it..