Skip to content

Commit

Permalink
Update DataTable to fix bug with search input
Browse files Browse the repository at this point in the history
  • Loading branch information
Ana06 committed Nov 30, 2018
1 parent dd23d1f commit 67d31a9
Showing 1 changed file with 22 additions and 23 deletions.
45 changes: 22 additions & 23 deletions _posts/atoms/2018-08-30-table.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,27 +34,26 @@

%h5 Table with DataTable

%table.responsive.table.table-striped.table-bordered#my-datatable
%thead
%tr
%th Fruits
%th Origin
%th Vendor
%tbody
%tr
%td Oranges
%td Bananas
%td Kiwis
%tr
%td Spain
%td Brazil
%td Germany
%tr
%td Fruits Are Us
%td Fruits & Vegetables Inc.
%td SUSE Fruit Company Ltd.
.obs-dataTable
%table.table.table-striped.table-bordered#my-datatable
%thead
%tr
%th Fruits
%th Origin
%th Vendor
%tbody
%tr
%td Oranges
%td Bananas
%td Kiwis
%tr
%td Spain
%td Brazil
%td Germany
%tr
%td Fruits Are Us
%td Fruits & Vegetables Inc.
%td SUSE Fruit Company Ltd.

:javascript
$('#my-datatable').DataTable({
responsive: true
});
= content_for :ready_function do
initializeDataTable('#my-datatable');

0 comments on commit 67d31a9

Please sign in to comment.