jquery DataTable Instance Operations

Source: Internet
Author: User

 varDataTables = $ (". Table"). dataTable ({data:d,//is the value of Ajax, there is no direct use of the plug-in with the request data, personal data way to control some columns : [{//Set table contents sdefaultcontent:"",//default value data:"Id",//Key bvisible for the data JSON :false //This column does not display}, {title:Name, Data:"Name",
Class: "",//Set the class value of the current TD
               Render: function (data, type, full) { //the contents of the custom module, data is the value of the name corresponding to the key, all values
Return "<div title=" + Data + ">" + Data + "</div>"; //You can prevent the width of the table TD from being set by setting the width of the div, and you can add the title
}
}
], //"Columndefs": [{//Set Edit button //"Targets": [3], //"Data": "id", //"Render": function (data, type, full) { //return "<a class= ' Updata ' href= ' # ' > Edit </a>"; // } //}],Bpaginate:false,//whether to display (apply) the page splitterBinfo:false,//If footer information is displayed, the number of records is displayed in the lower left corner of the DataTables pluginBsort:true,//whether to start the sorting function for each fieldaasorting: [[0, ' ASC ']],//default row sequence Bselectall:false, Fncallback:function () { }, //Opagesize:10, //osorttype: "desc", //osortcol: "Proname",Bprocessing:true, Olanguage: {//Multi-language configuration"Sprocessing": "Loading in ...", "Slengthmenu": "Show _menu_ records per page", "Szerorecords": "Sorry, the query does not have the relevant data!" ", "Semptytable": "No data exists in table!" ", "Sinfo": "Current display _start_ to _end_ bar, total _total_ Records", "sinfofiltered": "Data table is _max_ record", "Ssearchplaceholder": "??" Find,//placeholder in search box"Ssearch": "",//font before the search box"Opaginate": { "Sfirst": "Home", "Sprevious": "Prev", "Snext": "Next Page", "Slast": "Last" } } });

jquery DataTable Instance Operations

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.