java data table source tymeleaf

Solutions on MaxInterview for java data table source tymeleaf by the best coders in the world

showing results for - "java data table source tymeleaf"
Emma
04 Oct 2018
1$(document).ready(function () {
2     $('#myDataTable').DataTable({ 
3         'destroy' : true,
4         'serverSide' : true,
5         'sAjaxSource': '/ApplicationName/Data/Person',
6         'sAjaxDataProp': '',
7         'order': [ [ 0, 'asc' ] ],
8         'columns': 
9         [ 
10            {  'data': 'name',
11                'render': function(data, type, row, meta){ 
12                    if(type === 'display'){ 
13                        data = '<a href="javascript:openPersonDetail(''+ row.socialSecurity +'');">' + data + '</a>' 
14                    }  
15                    return data; 
16                } 
17            } ,
18            { 'data': 'socialSecurity'} ,
19            { 'data': 'birthdate'} ,
20            { 'data': 'gender'} 
21         ],
22         'scrollY' : 300,
23         'scrollCollapse' : true,
24         'paging' : true,
25         'autoWidth' : true,
26         'ordering' : true,
27         'searching' : false,
28         'pageLength' : 20,
29         'lengthChange' : false,
30         'pagingType' : 'full_numbers',
31         'dom' : '<"top"ip>rt<"bottom"fl><"clear">' 
32     }); 
33 });
34
similar questions
queries leading to this page
java data table source tymeleaf