gpt4 book ai didi

javascript - 数据表: How to show the show Entries dropdown beside the Showing 0 to 0 of 0 entries in the table structure

转载 作者:行者123 更新时间:2023-11-28 00:15:39 30 4
gpt4 key购买 nike

是否可以在表结构中的“显示 0 到 0 个条目中的 0 个条目”旁边显示“显示条目”下拉列表。我想在底部显示“显示条目”下拉列表以及分页并显示 0 到 0 个条目,共 0 个条目。

提前致谢!!!

图像看起来像

现在我想根据第二个场景显示显示下拉条目。

the image is with show dropdown at top

Now i want to show the show dropdown entries as per the image two.

最佳答案

是的,可以通过 dataTables“dom”属性实现。 i 是信息,l 是长度菜单,在 i 之前插入 l :

var table = $("#example").DataTable({
//default is lfrtip
dom: 'frtlip'
});

//lengthmenu -> add a margin to the right and reset clear
$(".dataTables_length").css('clear', 'none');
$(".dataTables_length").css('margin-right', '20px');

//info -> reset clear and padding
$(".dataTables_info").css('clear', 'none');
$(".dataTables_info").css('padding', '0');

演示 -> https://jsfiddle.net/psvf3z75/

enter image description here

关于javascript - 数据表: How to show the show Entries dropdown beside the Showing 0 to 0 of 0 entries in the table structure,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30475220/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com