List: document event handling

This commit is contained in:
Jonathan Daugherty 2015-07-19 12:30:08 -07:00
parent b6866718fa
commit d47c534598

View File

@ -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