akiran / akiran/react-slick

Problem with paging

Đang mở
#1,500 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
JavaScript
Star
11.9k
Fork
2.1k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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!

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.