palantir/blueprint

Feature request: Ability to reverse the up/down buttons on NumericInput

開放

#4,706 建立於 2021年5月8日

 (0 則留言) (0 個反應) (0 位負責人)TypeScript (2,167 個分叉)batch import
P2Package: coreType: feature requesthelp wanted

倉庫指標

星標
 (20,263 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

I'm trying to use NumericInput to allow users to page through a long document. For paging, the natural order of the up/down buttons is the opposite of the way the control works (up button should be previous page, down button should be next page). I tried to achieve this by using a negative stepSize, but that causes an error.

Edit: This change should also apply to using the up/down arrow keys when focus is on the value input box. Up arrow should decrement, down arrow should increment.

image

貢獻者指南