Is there a way with the jquery datatables plugin to hide (and show) a table column?
我想出了如何重载表数据:使用fnClearTable
和fnAddData
.
但我的问题是,在我的一个表视图(例如,隐藏模式)中,我不想显示某些列.
Is there a way with the jquery datatables plugin to hide (and show) a table column?
我想出了如何重载表数据:使用fnClearTable
和fnAddData
.
但我的问题是,在我的一个表视图(例如,隐藏模式)中,我不想显示某些列.
You can hide columns by this command:
fnSetColumnVis( 1, false );
其中第一个参数是列的索引,第二个参数是可见性.
Via:http://www.datatables.net/api-功能fnSetColumnVis