0

enter image description here

I want to remove that filter for rows. I already tried

vm.dtOptions = DTOptionsBuilder.newOptions().withPaginationType('full_numbers')
                                        .withDisplayLength(10)
                                        .withOption('language', lang);
var lang = {
 "lengthMenu": ""
}
CMedina
  • 4,034
  • 3
  • 24
  • 39
jjjjjj
  • 35
  • 6
  • Possible duplicate of: [angular-datatables : How to remove “Show N entries” but leave pagination](http://stackoverflow.com/questions/32894201/angular-datatables-how-to-remove-show-n-entries-but-leave-pagination) – developer033 Jul 25 '16 at 00:25
  • it is still there. – jjjjjj Jul 25 '16 at 00:30
  • here is my code vm.dtOptions = DTOptionsBuilder.newOptions().withPaginationType('full_numbers') .withDisplayLength(10) .withOption('lengthChange', false); – jjjjjj Jul 25 '16 at 00:30

2 Answers2

1

There are multiple ways to achieve the same,

  1. Using 'lengthChange' option.

    DTOptionsBuilder.newOptions()
        .withOption('lengthChange', false);
    
  2. Using 'dom' option.

    DTOptionsBuilder.newOptions()
        .withOption('dom', 'frtip');
    
Rob
  • 26,989
  • 16
  • 82
  • 98
Saji Xavier
  • 2,132
  • 16
  • 21
0

Have you tried using the dom option? You may need to exclude the l option. DataTables dom Option

Steve
  • 26
  • 3