lavkach3
1/****************************************
2* Table Responsive *
3****************************************/
4$(function () {5$("#config-table").DataTable({6responsive: true,7});8});9
10/****************************************
11* Basic Table *
12****************************************/
13$("#zero_config").DataTable();14
15/****************************************
16* Default Order Table *
17****************************************/
18$("#default_order").DataTable({19order: [[3, "desc"]],20});21
22/****************************************
23* Multi-column Order Table *
24****************************************/
25$("#multi_col_order").DataTable({26columnDefs: [27{28targets: [0],29orderData: [0, 1],30},31{32targets: [1],33orderData: [1, 0],34},35{36targets: [4],37orderData: [4, 0],38},39],40});41
42/****************************************
43* Complex header Table *
44****************************************/
45$("#complex_header").DataTable();46
47/****************************************
48* DOM positioning Table *
49****************************************/
50$("#DOM_pos").DataTable({51dom: '<"top"i>rt<"bottom"flp><"clear">',52});53
54/****************************************
55* alternative pagination Table *
56****************************************/
57$("#alt_pagination").DataTable({58pagingType: "full_numbers",59});60
61/****************************************
62* vertical scroll Table *
63****************************************/
64$("#scroll_ver").DataTable({65scrollY: "300px",66scrollCollapse: true,67paging: false,68});69
70/****************************************
71* vertical scroll,dynamic height Table *
72****************************************/
73$("#scroll_ver_dynamic_hei").DataTable({74scrollY: "50vh",75scrollCollapse: true,76paging: false,77});78
79/****************************************
80* horizontal scroll Table *
81****************************************/
82$("#scroll_hor").DataTable({83scrollX: true,84});85
86/****************************************
87* vertical & horizontal scroll Table *
88****************************************/
89$("#scroll_ver_hor").DataTable({90scrollY: 300,91scrollX: true,92});93
94/****************************************
95* Language - Comma decimal place Table *
96****************************************/
97$("#lang_comma_deci").DataTable({98language: {99decimal: ",",100thousands: ".",101},102});103
104/****************************************
105* Language options Table *
106****************************************/
107$("#lang_opt").DataTable({108language: {109lengthMenu: "Display _MENU_ records per page",110zeroRecords: "Nothing found - sorry",111info: "Showing page _PAGE_ of _PAGES_",112infoEmpty: "No records available",113infoFiltered: "(filtered from _MAX_ total records)",114},115});116