javascript - 如何隐藏 jstree 拆分器?

标签 javascript html splitter

我的应用程序中有条件显示面板。面板由水平和垂直分隔器分隔。如果我将面板隐藏在水平分隔条下方,我想隐藏它。

最佳答案

类似的东西-

<div id="myPanels" class="splitter">
  <div class="leftPane" style="width:30%">
    <div class="horizontalSplitter">
      <div id="topPane" style="overflow-y: scroll "></div>
      <div id="bottomPane"></div>
    </div>
  </div>
  <div class="rightPane" id="rightPanel">
    <div class="splitter" id="splitterRight">
      <div class="leftPane" style="width:50%" id="hleftPanel">
      </div>
      <div class="rightPane" style="width:50%" id="hRightPanel">
      </div>
    </div>
  </div>

$("#myPanels").splitter();

在这种情况下,如果有人想用 #topPanel 隐藏水平的 splitter 条,代码将是:

$("#topPanel").hide();
$("#topPanel").next().hide();    

关于javascript - 如何隐藏 jstree 拆分器?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22024758/

相关文章:

javascript - 多个changeImage实例

javascript - 启动 opentok 视频时创建新的 DOM,无法按下按钮

javascript - 在 dc.js 中显示鼠标悬停时的其他数据属性

javascript - HTML 表格单元格对齐

delphi - 使用拆分器时如何保持控件在表单中可见?

javascript - 如何使用谷歌图表隐藏确切日期并仅在工具提示中显示范围

html - CSS v-align 相对 div 内的绝对 div,其高度由内部的 img 确定

javascript - 未捕获的类型错误 : Cannot read property 'then' of undefined SweetAlert & jquery

jquery - ASP.NET MVC 中的链接样式失败问题