ยค pickListF, PickListRequest

Displaying and interacting with lists

Types

pickListF :: (a -> String) -> F (PickListRequest a) (InputMsg (Int, a))
type PickListRequest a = ListRequest a

Synopsis

pickListF show_alt

Description

pickListF is used to display a scrollable list of alternatives from which the user can pick one by clicking on it.

Input

Requests to modify the list being displayed.

Output

The alternative that the user clicks on, paired with its ordinal number in the list of alternatives (counting from 0).

Arguments

show_alt :: a -> String
A function that determines the text string that is shown for each alternative in the list.

Example

 stripInputSP >^^=< pickListF id >=^< replaceAll

See Also

More useful information: ListRequest, replaceAll, InputMsg, stripInputSP.

Related fudgets: moreF, filePickF, menuF, radioGroupF, hyperGraphicsF.