¤ pickListF, PickListRequest

Types

pickListF :: (a -> String) -> F (PickListRequest a) (InputMsg (Int, a))
type PickListRequest a = TextRequest 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 text 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

 pickListF id

See Also

More useful information: textF.

Related fudgets: moreF, filePickF, menuF.