Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

java data table source tymeLeaf

$(document).ready(function () {
     $('#myDataTable').DataTable({ 
         'destroy' : true,
         'serverSide' : true,
         'sAjaxSource': '/ApplicationName/Data/Person',
         'sAjaxDataProp': '',
         'order': [ [ 0, 'asc' ] ],
         'columns': 
         [ 
            {  'data': 'name',
                'render': function(data, type, row, meta){ 
                    if(type === 'display'){ 
                        data = '<a href="javascript:openPersonDetail(''+ row.socialSecurity +'');">' + data + '</a>' 
                    }  
                    return data; 
                } 
            } ,
            { 'data': 'socialSecurity'} ,
            { 'data': 'birthdate'} ,
            { 'data': 'gender'} 
         ],
         'scrollY' : 300,
         'scrollCollapse' : true,
         'paging' : true,
         'autoWidth' : true,
         'ordering' : true,
         'searching' : false,
         'pageLength' : 20,
         'lengthChange' : false,
         'pagingType' : 'full_numbers',
         'dom' : '<"top"ip>rt<"bottom"fl><"clear">' 
     }); 
 });
Comment

PREVIOUS NEXT
Code Example
Java :: random number in java between 10 and 20 
Java :: es java painless source int value increase 
Java :: how to put array in array list stack overflow 
Java :: ordenar numeros java 
Java :: free marker templates 
Java :: how to add element in java arraylit syntax in gfg 
Java :: build cmake gradle 
Java :: how to disable the auto-configuration? 
Java :: java inetaddress workaround how to get localhost secure 
Java :: spigot change move speed of living entity creature 
Java :: Which one of the following values can a Java variable NOT have? 
Java :: trémaux’ method java 
Java :: Example of ArrayDeque 
Java :: how to load template file from resource folder in spring boot project 
Java :: Fast Search in java 
Java :: Labeled continue Statement Java 
Java :: They say that they have to create an instance to their application. What does it mean? 
Java :: check is element present in queue java 
Java :: iterade dict javacirpt 
Java :: integer class in java 
Java :: run java in cmd 
Java :: can abstract class have constructor in java 
Java :: java break statement 
Java :: ascii values to display certain characters in java 
Java :: palindrome in java 
Java :: java calling a method 
Java :: how to stop screen going off android studio 
Java :: quit button java swing 
Java :: selenium firefox to foreground -python java 
Sql :: fatal error: libpq-fe.h: No such file or directory 
ADD CONTENT
Topic
Content
Source link
Name
7+7 =