问题标签 [collapsable]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
1697 浏览

c# - C# .NET / javascript : Collapsable Table Rows - 这是怎么回事?

我有一个 C# .NET 页面,我想在按下按钮时使行折叠。我发现了很多类似这样的教程(http://codingforums.com/archive/index.php?t-90375.html),试图实现他们的解决方案,但是当我点击我的按钮时,它们都没有为我做任何事情。为了确保我不会发疯,我制作了一个小测试页来看看这个想法是否有效。出于某种原因,它不是。浏览器是IE6。我正在运行 Visual Studio 2005。有谁知道为什么这不起作用?正如我所期望的那样,呈现的页面显示了一个按钮和一行文本;单击按钮时,文本行不会消失。我知道我可以使用 div,但请记住,这只是一个概念证明;在我的实际应用程序中,必须折叠的是表格行。

0 投票
2 回答
1433 浏览

.net - 如何创建可折叠的数据网格?

如何在点网窗口窗体应用程序中创建可折叠数据网格?

0 投票
2 回答
1294 浏览

jquery - 使用jquery从表格单元格定位扩展折叠框

我的问题是,是否有人知道如何在不扩展整个表格的情况下实现从表格单元创建滑动的效果。

它太独立于桌子顶部特定行的位置滑动,所以也可以这么说

否则它看起来很难看,正如您从我的页面中看到的那样 (单击第一行)我将 div 放置在单元格中

我想我也找到了 tablecell 的位置并将其放在它的顶部,但我还不知道该怎么做。

这是我用于幻灯片的代码:

谢谢,理查德

0 投票
1 回答
60 浏览

autocomplete - 可折叠的自动完成

我如何在 Jquery 中实现可折叠的自动完成功能。我有一个组,一个组可以有零个或多个项目。我如何在 Jquery 中实现这一点。

谢谢

0 投票
1 回答
978 浏览

javascript - 如何为动态内容创建单独的可折叠 div?

我想在我的网站上创建一个实际上是可折叠 div 列表的列表。因此,当您单击列表中的某个项目时,将显示更多信息。

我正在使用来自http://www.dynamicdrive.com/dynamicindex17/animatedcollapse.htm的动画折叠

问题是,由于我循环遍历 div,它们都具有相同的 id,因此“打开”任何 div 都会打开所有 div。

我应该为每个 div 制作唯一的 id 吗?它是如何完成的?

非常感谢你的帮助。我正在使用 Django。

0 投票
1 回答
1631 浏览

jquery - jquery treeview plugin change link behavior (avoid collapse)

I am using the jQuery Treeview plugin. Have a look to the "Sample 1 - default" provided on the demo page of the plugin http://jquery.bassistance.de/treeview/demo/. In my case all folders and files are links. If I click for example on the expanded "Folder 2" it will first collapse and then follow to the link location. The behaviour I would like to is, that only collapsed ones will expand first and if it already expanded it will stay like this.

The code in the plugin (jquery.treeview.js) which toggle the behaviour is the following:

I already figured out how to get all the links, which should be changed:

The result will be a array of all li which are currently collapsable (expanded): [li., li.collapsable]

But I don't know how to proceed from there :-( Hopefully someone could help me along...

I already changed sucessfully the linkbehavior for the current selected (class=selected) link with this code:

Many thanks in advance!

0 投票
2 回答
660 浏览

jquery - jQuery clickable row

I have a table, representing a calendar, that can expand and collapse table rows.

With jQuery I make it clickable:

The problem now, is that the window scrolls always to the top after a table row is clicked. I want it to stay at the scrolling position that it was before the click.

The child rows get collapsed as supposed to, but the document scrolls to the top immediately after the click, even though i have returned false at the end of .click... What am I doing wrong?

0 投票
1 回答
524 浏览

java - JXCollapsiblePane 和 JXMultiSplitPane

我有一个使用 JXMultiSplitPane 来显示多个组件的用户界面。但是,我希望某些窗格可以折叠。我考虑过如何在这里使用 JXCollapsiblePane,但我想不出一个好方法来让选择窗格具有多重拆分和可折叠性。

我的想法是不使用 JXCollapsible 窗格,而只是创建一个按钮,通过为该窗格设置分隔线位置来折叠/展开窗格。有没有办法在这里使用 JXCollapsiblePane 以便我可以获得诸如动画折叠/展开之类的不错的功能?

0 投票
1 回答
223 浏览

jquery-mobile - 附加到可折叠元素的内容问题

我在页面上有一个可折叠部分,一旦按下可折叠标题,我将使用 ajax 调用附加更多元素。效果很好,出现进度条

$("div#showTicketForm").live("expand", function() {

});

问题是,单击标题时添加的内容不会折叠。

怎样才能做到这一点?

0 投票
1 回答
356 浏览

javascript - 提交表单时如何折叠 jQuery 选项卡?

我有一个表单,用户可以通过打开一系列 jQuery 选项卡来输入信息。

当用户提交表单时,我想折叠所有打开的选项卡。我怎么做?

注意:仅仅隐藏选项卡的内容是不够的。必须取消选择按钮,并且必须以某种方式设置可见性,以便表单继续工作。我试着说...

...但之后选项卡的内容将无法正确显示。人们需要能够继续使用表单并一遍又一遍地提交。感谢你给与我的帮助!