Skip to content

pageCount only accepts number but I want to pass a string #488

Open
@HamaDler

Description

@HamaDler

So my pageCount sometimes gets too big (in the thousands), and I want to add digit separators like so 1565 => 1,656.

but passing "1,656" as a string is not allowed and if I use normal js numbers with separators 1,555 it just assumes I am trying to pass in two props, 1 and 555.

Is there any workarounds for this?

I want to achieve something like the image below. I customized the container with css, but I can't do the number formatting with CSS, and with JS it just turns it to string which the inner element doesn't accept.

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions