如何使用appframework 3

时间:2016-01-22 11:12:26

标签: hybrid-mobile-app intel-xdk appframework

导航到子页面后我想关闭左侧菜单,但是app会抛出“uib_sb未定义”。 我如何关闭菜单?

这个导航代码:

$(document).on("click", ".uib_w_5", function(evt)
{
  activate_subpage("#page_83_54"); 
  uib_sb.close_all_sidebars();
});

这是菜单:

<nav class="af-sidemenu outer-element uib_w_2" data-side="left" id="uib_w_2" data-uib="app_framework/side_menu_area" data-ver="2">
                <div class="view active">
                    <header class="container-group outer-element uib_w_3" data-uib="app_framework/header" data-ver="3" id="af-header-1">
                        <h1>Prova</h1>
                        <div class="widget-container wrapping-col single-centered"></div>
                        <div class="widget-container content-area horiz-area wrapping-col header-left"></div>
                        <div class="widget-container content-area horiz-area wrapping-col header-right"></div>
                    </header>
                    <div class="pages">
                        <div class="panel active">
                            <div class="col uib_col_1 single-col" data-uib="layout/col" data-ver="0">
                                <div class="widget-container content-area vertical-col">
                                    <ul class="list widget uib_w_4 d-margins" data-uib="app_framework/listview" data-ver="2">
                                        <li class="widget uib_w_5" data-uib="app_framework/listitem" data-ver="2"><a>ricerca per produttore</a>
                                        </li>
                                        <li class="widget uib_w_6" data-uib="app_framework/listitem" data-ver="2"><a>ricerca per scheda</a>
                                        </li>

                                    </ul>
                                    <span class="uib_shim"></span>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </nav>

1 个答案:

答案 0 :(得分:0)

我发现了这个:

$.afui.drawer.hide ("#uib_w_2", "left");