简体   繁体   English

数据表响应-列不可折叠到子行

[英]Datatables responsive - column not collapsible to child row

I use DataTables . 我使用DataTables Each row in all tables has it's own actions in a separate column (smtn like "edit item", "delete item" and so). 所有表中的每一行在单独的列中都有其自己的操作(smtn,例如“ edit item”,“ delete item”等)。

动作栏

I use the Responsive extension and it shrinks the table to width of a view and columns that do not fit that area are put into the "child row" (set of values visible on-demand under the plus button). 我使用Responsive扩展,它将表缩小到视图的宽度,并将不适合该区域的列放入“子行”(按需在加号按钮下可见的一组值)。

I would like to keep my actions column visible but on the right side of table. 我想让我的“操作”列保持可见,但在表格的右侧。 Is it possible? 可能吗? And how? 如何?

Yes its possible 是的,有可能

Datatables gives you the option to set priority to any column using columnDefs 数据表使您可以选择使用columnDefs设置任何列的优先级

https://datatables.net/extensions/responsive/priority https://datatables.net/extensions/响应/优先级

Default priority for columns is 10000. So you can assign a lower value for the action column so that its not hidden before others. 列的默认优先级是10000。因此,您可以为操作列分配一个较低的值,这样它就不会在其他列之前被隐藏。

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

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