laboratoriobridge / bold

https://bold.bridge.ufsc.br
MIT License
75 stars 9 forks source link

[ Paginator ] Allow customization of underlying input maxLength prop #815

Closed mathbalduino closed 11 months ago

mathbalduino commented 11 months ago

Hey guys, how's it going

So, I faced this issue when building some really big tables in which I had more than 9999 pages. Right now, the underlying input length is limited (hardcoded) by 4: Paginator.tsx:89

I just added a new prop to the Paginator, called maxLength, that can be used to customize the input Thanks!

codecov[bot] commented 11 months ago

Codecov Report

Merging #815 (cbe8436) into main (3e7d763) will increase coverage by 0.00%. The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main     #815   +/-   ##
=======================================
  Coverage   98.71%   98.71%           
=======================================
  Files         525      525           
  Lines        4451     4452    +1     
  Branches      686      687    +1     
=======================================
+ Hits         4394     4395    +1     
  Misses         57       57           
Files Changed Coverage Δ
src/components/Paginator/Paginator.tsx 97.43% <100.00%> (+0.06%) :arrow_up:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more