【问题标题】:Dropdown inside datatable elements with pagination带有分页的数据表元素内的下拉菜单
【发布时间】:2017-09-28 18:23:35
【问题描述】:

我是数据表的新手,我正在尝试做this,但我想做分页,因为链接中提供的答案不涉及任何分页。可能吗?因为我已经尝试过,当我将分页设置为 true 时,给定链接中的下拉解决方案将不起作用。

<script type="text/javascript">
    $(document).ready(function() {
      $('#datatable-responsive').DataTable( {
        "responsive": true,
        "paging": true,
        "dom": 't<"margin-dataTable-bottom"<"pull-left margin-dataTable-pagination">>'
      } );
    } );
  </script>

【问题讨论】:

    标签: javascript jquery scroll datatable pagination


    【解决方案1】:

    您可以尝试这种替代解决方案,它是数据表中可扩展的分页机制,

     $(document).ready(function() {
    $('#example').DataTable( {
        "pagingType": "full_numbers"
    } );
    } );
    

    请在下面的链接中找到更多详细信息: https://datatables.net/examples/basic_init/alt_pagination.html

    【讨论】:

    • 这不是我想要的。我的意思是,我想在不滚动的情况下在数据表中显示下拉菜单,并且数据表将同时进行分页。根据我给出的链接,分页时解决方案不起作用
    猜你喜欢
    • 2012-09-17
    • 1970-01-01
    • 2018-02-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-07-21
    • 1970-01-01
    • 2014-12-05
    相关资源
    最近更新 更多