akiran / akiran/react-slick

Problem with paging

オープン
#1,500 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
11.9k
フォーク
2.1k
PR マージ指標
30日以内にマージされた PR はありません

説明

Hi, I'm trying to call a function everytime I click on a page of Slick. I could do it but I've found that they work together. I'll get you in context showing my code:

```
const show = (element) => console.log(element);
...
const settings = {
customPaging: (i) => {
return (


{i + 1}

);
},
...
```
If I click to any of the pages, I don't know why it shows all the values on the console. I would like to show just the value of the item that I'm clicking. For example, if I'm clicking to the page 3 I want to show on the console a '3'.

Do you know how could I do it? Thanks!

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。