简体   繁体   中英

Is it possible to not use ellipsis in ngx-pagination?

I'm using ngx-pagination package and trying to implement this:

在此处输入图片说明

But this is what I have until now:

在此处输入图片说明

My HTML:

<pagination-controls responsive="true" directionLinks="false"></pagination-controls>

My CSS:

.ngx-pagination {
    .current {
        background: orange;
    }
}
  • Do you know if would it be possible to put more space between the different items? Thus incrementing the width of the component.
  • In case of more width available, show more numbers instead of ellipsis ( ... ).
  • Show a dot (like a bullet) between the numbers. For this I have found this . But doesn't work well, it shows the dots below the numbers. Only works for the current number. See below: 在此处输入图片说明

Stackblitz: https://stackblitz.com/edit/angular-xbh9ft

Finally, I opened an issue in the package's Github repo and could achive what I wanted. I had to implement a custom template. For me was useful this example .

I leave here the link to a demo in Stackblitz just in case someone finds it useful:

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM