[英]print datatable as default table
I have a datatable with column filter so thead has search inputs 我有一个带有列过滤器的数据表,因此该广告具有搜索输入
I need when user print this page (Cntr + p) to print the table as a default table without the column filter and datatable arrows "remove datatable" 我需要在用户打印此页(Cntr + p)时将表打印为默认表,而没有列过滤器和数据表箭头“删除数据表”
What you need to do in your css is define print media as follows with all the classes you want to apply or not apply when user hits Ctrl+P: 您需要在CSS中做的是定义打印介质,如下所示,当用户按下Ctrl + P时要应用或不应用的所有类:
Here is an example that will eliminate all arrows from column headers 这是一个示例,该示例将消除列标题中的所有箭头
@media print {
.sorting, .sorting_asc, .sorting_desc {
display:none;
}
}
UPDATE: 更新:
In order for you to show filter text, I suggest you do the following: 为了显示过滤器文本,建议您执行以下操作:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.