Page 1 of 1

Panel in template issues...

Posted: Sat May 17, 2014 4:30 am
by bahar.wadia

I have added a Panel in my template, because it won't let me add a panel to my page created from a template.

The problem is that I cannot access the "open" or close events of the panel. What am I missing.

Thank you in advance.


Panel in template issues...

Posted: Sat May 17, 2014 5:23 am
by Alena Prykhodko

Hello,

In this case you can access Open panel or Close panel events from your Templates not from Pages.
Open Template with Panel to edit it, and changes will be reflected on the Page created from this Template.
Image


Panel in template issues...

Posted: Sat May 17, 2014 12:57 pm
by bahar.wadia

Yes, I figured that. The problem then is that all the screens that use that template will have the same exact code being executed for the open and close events. Correct?

Is there another way to access the two events?


Panel in template issues...

Posted: Mon May 19, 2014 9:06 am
by Evgene Karachevtsev

Hello,

From appery.io builder you can create events for panel only in template that contains the panel.
But you can create your own event for every child pages youself manually:

code$(document).off("panelopen", '[id="pagePanel_panel_2"]').on( "panelopen", function( event, ui ) {console.log("open");} ); /code