Skip to content

v8.1.0

Compare
Choose a tag to compare
@MonsieurV MonsieurV released this 03 Dec 01:22
· 40 commits to master since this release
c35167b
  • A new prop onClick has been added. It is a callback for any click on the component. It exposes information on the part clicked (for eg. isNext for when next control is clicked or isBreak for a break clicked), the next expected page nextSelectedPage & others. Can return false to prevent any page change or a number to override the page to jump to. Just return nothing (or undefined) to let default behavior take place. (see: #263)
  • Prevent breaks to be displayed when both pageRangeDisplayed and marginPagesDisplayed are 0