react-headless-pagination icon indicating copy to clipboard operation
react-headless-pagination copied to clipboard

Format number with K/Ms

Open cmutagorama opened this issue 1 year ago • 3 comments

I have a large dataset to display but some numbers are overlapping due to their long length. Screenshot 2023-03-15 at 14 21 06

Can I have a way to format number so that instead of displaying 40000 => 40k and so on?

cmutagorama avatar Mar 15 '23 12:03 cmutagorama

@thijssmudde any update on this?

cmutagorama avatar Mar 20 '23 11:03 cmutagorama

Yes, it's possible to add this functionality as a render prop. However, I'm not sure yet if this library should support this behaviour.

thijssmudde avatar Mar 21 '23 12:03 thijssmudde

Not supporting this feature/behavior would mean that this lib is limited to a certain number of total pages, right?

cmutagorama avatar Mar 23 '23 18:03 cmutagorama