DataTable: Hide the Show Entries dropdown but keep the Search box

后端 未结 13 1431
再見小時候
再見小時候 2021-01-29 23:55

Is it possible to hide the Show Entries dropdown but keep the Search box in DataTable? I want to always display 10 rows with pagination at the bottom along with search box but d

13条回答
  •  伪装坚强ぢ
    2021-01-30 00:29

    To disable the "Show Entries" label, use "bInfo", example: "bFilter" is the search component, but are active by default.

    $(document).ready( function () {
      $('#example').dataTable( {
        "bInfo": false
      } );
    } );
    

    Enable or disable the table information display. This shows information about the data that is currently visible on the page, including information about filtered data if that action is being performed.

提交回复
热议问题