User interface 需要一个没有ons拆分器的登录页面
如何使ons拆分器仅出现在登录页面之后User interface 需要一个没有ons拆分器的登录页面,user-interface,onsen-ui,User Interface,Onsen Ui,如何使ons拆分器仅出现在登录页面之后 我有一个拆分器菜单和四个以上的页面,他们都需要打开这个拆分器。但在此之前,我有一个登录页面,我想阻止拆分器打开(swipeable)有两种常见的方法可以做到这一点: 使用ons navigator(导航器)——您可以在登录页面上设置导航器,然后使用拆分器加载页面 之后,您只需使用mySplitterContent.load('oneof4page.html') 始终使用mySplitterContent.load('somePage.html'),但默认情
我有一个拆分器菜单和四个以上的页面,他们都需要打开这个拆分器。但在此之前,我有一个登录页面,我想阻止拆分器打开(swipeable)有两种常见的方法可以做到这一点:
mySplitterContent.load('oneof4page.html')
mySplitterContent.load('somePage.html')
,但默认情况下使用类似
的内容
稍后当用户登录时,您可以执行以下操作:
mySplitterContent.open();
mySplitterContent.setAttribute('swipeable', 'swipeable');
// and then continue using
mySplitterContent.load('somePage.html');
欢迎来到堆栈溢出!显示一些代码以查看到目前为止您已尝试的内容。