回答編集履歴
1
追記
test
CHANGED
@@ -1,5 +1,23 @@
|
|
1
|
+
[customPaging | slick - にほんご。](https://tr.you84815.space/slick/settings/customPaging.html)を参考にすれば実現可能です。
|
2
|
+
|
3
|
+
|
4
|
+
|
1
5
|
https://stackoverflow.com/questions/34660680/slick-slider-replace-dots-with-numbers
|
2
6
|
|
3
7
|
|
4
8
|
|
5
|
-
|
9
|
+
⇡のうち、customPagingを抜き出すとこんな感じ。
|
10
|
+
|
11
|
+
```js
|
12
|
+
|
13
|
+
customPaging : function(slider, i) {
|
14
|
+
|
15
|
+
var thumb = $(slider.$slides[i]).data();
|
16
|
+
|
17
|
+
// return '<a>'+(i+1)+'</a>';
|
18
|
+
|
19
|
+
return `<a>${(i+1).toString().padStart(2, "0")}</a>`;
|
20
|
+
|
21
|
+
},
|
22
|
+
|
23
|
+
```
|