mirror of
https://github.com/jtdaugherty/brick.git
synced 2025-01-06 05:14:11 +03:00
List: document event handling
This commit is contained in:
parent
b6866718fa
commit
d47c534598
@ -46,7 +46,9 @@ import Brick.Util (clamp)
|
||||
import Brick.AttrMap
|
||||
|
||||
-- | List state. Lists have an element type 'e' that is the data stored
|
||||
-- by the list.
|
||||
-- by the list. Lists handle the following events by default:
|
||||
--
|
||||
-- * Up/down arrow keys: move cursor of selected item
|
||||
data List e =
|
||||
List { listElements :: ![e]
|
||||
, listElementDraw :: Bool -> e -> Widget
|
||||
|
Loading…
Reference in New Issue
Block a user