inputPopupOptF :: String -> InF a b -> Maybe b -> F (Maybe String, Maybe a) ((Maybe String, Maybe a), Maybe b)
inputPopupOptF title fudget default
inputPopupOptF
is similar to inputPopupF,
but inputPopupOptF
outputs even if the Cancel button is pressed.
The following is a description of inputPopupOptF
. inputListF
works analogously.
Nothing
. Sending a message to inputPopupOptF
causes the window to
appear on the screen.
Just x
when the OK button is pressed, and Nothing
if the Cancel button is pressed. In both cases, the output is
paired with the latest input.
The window disappears when one of the buttons is pressed.
title :: String
fudget :: InF a b
default :: Maybe b
inputPopupOptF filePickF