intel-xdkappframework

How to use App Framework panelload in Intel XDK


I tried to use panelload, but it won't trigger in my app, here is my code, any one can help?

    $(document).on("loadpanel","#uib_page_1", function(evt){
        alert("Test");
    });
    <div class="upage vertical-col left view" id="mainpage" data-header="none" data-footer="none">
      <div class="pages">
        <div class="upage-content vertical-col left panel ac0" id="uib_page_1">
...
          </div>
    </div>


Solution

  • This works for me on appFramework 3.0 :

       $(document).on("panelload","#uib_page_1", function(){
            console.log("Test");
        });