Previous and next frame with custom handles

51 views
Skip to first unread message

c.s...@coolblue.nl

unread,
Dec 30, 2016, 8:22:04 AM12/30/16
to Google Web Designer beta
For a carousel gallery I created custom handles to go to the next and previous frame, I am using the following command (found in this API Cheatsheet: http://www.html5advertising.de/downloads/GWDAPICheatsheet.pdf);

gwd.actions.gwdCarouselgallery.goForwards('gallery-' + galleryNmbr[2]);

But it seems it can't grasp my gallery, giving the following error in my console;

Uncaught TypeError: Cannot read property 'gwdCarouselgallery' of undefined
at HTMLImageElement.arrowFunction (index.html:1314).

Do i need to assign 'gwdCarouselgallery' first or?

Some help would be appreciated!
Thanks.

San Khong

unread,
Jan 3, 2017, 12:17:30 PM1/3/17
to Google Web Designer beta
Chris,

In Google Web Designer, select the carousel gallery on stage, open the Properties panel and you should be able to tell the id of carousel.  By default when you drag a carousel on stage, its id is gwd-carouselgallery_1.  

Hope it helps.
San
Google Web Designer team

Message has been deleted

Chris Snoek

unread,
Jan 4, 2017, 3:42:23 AM1/4/17
to Google Web Designer beta
Hi San, thanks for your reply.

I do have the correct id of the gallery, i get it dynamically. 
So the the code it executes is as follows;

gwd.actions.gwdCarouselgallery.goForwards('gallery-one');

Still getting the same error unfortunately :-(

I attached the file.

Keuzehulp filter.zip

Chris Snoek

unread,
Jan 4, 2017, 5:00:01 AM1/4/17
to Google Web Designer beta
Hi San,

I found a solution by creating different arrows for the different galleries and assigning them through the interface.
Thanks for your effort!
Reply all
Reply to author
Forward
0 new messages