mirror of
https://github.com/jtdaugherty/brick.git
synced 2025-01-07 14:36:59 +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
|
import Brick.AttrMap
|
||||||
|
|
||||||
-- | List state. Lists have an element type 'e' that is the data stored
|
-- | 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 =
|
data List e =
|
||||||
List { listElements :: ![e]
|
List { listElements :: ![e]
|
||||||
, listElementDraw :: Bool -> e -> Widget
|
, listElementDraw :: Bool -> e -> Widget
|
||||||
|
Loading…
Reference in New Issue
Block a user