简体   繁体   English

带有jQuery UI选项卡的数据表-优化

[英]Datatables with jQuery UI Tabs - Optimization

I have used the following link to successfully create various datatables for each jQuery UI Tab: 我已使用以下链接为每个jQuery UI Tab成功创建各种数据表:

http://www.datatables.net/examples/api/tabs_and_scrolling.html http://www.datatables.net/examples/api/tabs_and_scrolling.html

It works great! 效果很好! Towards the end of the the second paragraph for the Preamble section, the author states that: 在序言部分第二段的结尾处,作者指出:

"An optimisation could be added to re-size only of the first showing of the table." “可以添加优化以仅调整表的第一次显示的大小。”

I would like to do that since each of my Tabs displays a Datatable and the constant resizing is interfering with the user experience. 我想这样做是因为我的每个选项卡都显示一个数据表,并且不断调整大小会干扰用户体验。 It is OK if there is an initial delay on the first click of the tab, but it would be really good if the datatable does not need to be resized when the user switches back to the previously selected tab. 如果在选项卡的第一次单击上存在初始延迟,就可以,但是如果用户切换回先前选择的选项卡时不需要调整数据表的大小,那将是非常好的。

Any advice will be much appreciated. 任何建议将不胜感激。

Thanks. 谢谢。

Bharat 巴拉特

只需添加一个标志,指示您是否已经进行了大小调整。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM