Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/user-interface/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
User interface 需要一个没有ons拆分器的登录页面_User Interface_Onsen Ui - Fatal编程技术网

User interface 需要一个没有ons拆分器的登录页面

User interface 需要一个没有ons拆分器的登录页面,user-interface,onsen-ui,User Interface,Onsen Ui,如何使ons拆分器仅出现在登录页面之后 我有一个拆分器菜单和四个以上的页面,他们都需要打开这个拆分器。但在此之前,我有一个登录页面,我想阻止拆分器打开(swipeable)有两种常见的方法可以做到这一点: 使用ons navigator(导航器)——您可以在登录页面上设置导航器,然后使用拆分器加载页面 之后,您只需使用mySplitterContent.load('oneof4page.html') 始终使用mySplitterContent.load('somePage.html'),但默认情

如何使ons拆分器仅出现在登录页面之后


我有一个拆分器菜单和四个以上的页面,他们都需要打开这个拆分器。但在此之前,我有一个登录页面,我想阻止拆分器打开(swipeable)

有两种常见的方法可以做到这一点:

  • 使用ons navigator(导航器)——您可以在登录页面上设置导航器,然后使用拆分器加载页面

    之后,您只需使用
    mySplitterContent.load('oneof4page.html')

  • 始终使用
    mySplitterContent.load('somePage.html')
    ,但默认情况下使用类似
    的内容

    稍后当用户登录时,您可以执行以下操作:

    mySplitterContent.open(); 
    mySplitterContent.setAttribute('swipeable', 'swipeable');
    // and then continue using 
    mySplitterContent.load('somePage.html');
    

  • 欢迎来到堆栈溢出!显示一些代码以查看到目前为止您已尝试的内容。