質問編集履歴

2

datatablesバージョン追記

2018/02/15 01:08

投稿

niship
niship

スコア37

test CHANGED
File without changes
test CHANGED
@@ -306,6 +306,14 @@
306
306
 
307
307
 
308
308
 
309
+ > datatablesバージョン
310
+
311
+ File: jquery.dataTables.min.js
312
+
313
+ Version: 1.9.2
314
+
315
+
316
+
309
317
  tableは、[charisma](https://usman.it/themes/charisma/table.html)のテーブルテンプレートを使用しています。
310
318
 
311
319
  不足情報等ございましたら、ご指摘下さいませ。

1

script追記

2018/02/15 01:08

投稿

niship
niship

スコア37

test CHANGED
File without changes
test CHANGED
@@ -222,6 +222,90 @@
222
222
 
223
223
 
224
224
 
225
+ ```ここに言語を入力
226
+
227
+ <script>
228
+
229
+ $(function() {
230
+
231
+ $("#datePiceker_begin").datepicker();
232
+
233
+ });
234
+
235
+ $(function() {
236
+
237
+ $("#datePiceker_end").datepicker();
238
+
239
+ });
240
+
241
+ $('#clear').click(function() {
242
+
243
+ $('.form-control').val("");
244
+
245
+ });
246
+
247
+ $('#search_condition').click(function() {
248
+
249
+ if ($('#search_condition_list').is(':visible')) {
250
+
251
+ $('#search_condition_list').animate({
252
+
253
+ height: 'hide'
254
+
255
+ }, "normal");
256
+
257
+ $('#search_condition').text("▶︎Search Condition");
258
+
259
+ } else {
260
+
261
+ $('#search_condition_list').animate({
262
+
263
+ height: 'show'
264
+
265
+ }, "normal");
266
+
267
+ $('#search_condition').text("▼Search Condition");
268
+
269
+ }
270
+
271
+ });
272
+
273
+
274
+
275
+ table = $("#result-table").DataTable();
276
+
277
+ table.destroy();
278
+
279
+ table = $("#result-table").DataTable({
280
+
281
+ // 件数切替の値を10~50の10刻みにする
282
+
283
+ lengthMenu: [ 10, 20, 30, 40, 50 ],
284
+
285
+ // 件数のデフォルトの値を50にする
286
+
287
+ displayLength: 50,
288
+
289
+ scrollX: true,
290
+
291
+ scrollY: 200,
292
+
293
+ columnDefs: [
294
+
295
+ { targets: 0, visible: false },
296
+
297
+ { targets: 1, width: 100 }
298
+
299
+ ]
300
+
301
+ });
302
+
303
+ </script>
304
+
305
+ ```
306
+
307
+
308
+
225
309
  tableは、[charisma](https://usman.it/themes/charisma/table.html)のテーブルテンプレートを使用しています。
226
310
 
227
311
  不足情報等ございましたら、ご指摘下さいませ。