| Safe Haskell | Safe-Inferred |
|---|---|
| Language | GHC2021 |
Hydra.TUI.Forms
Documentation
utxoCheckboxField :: forall s e n. (s ~ Map TxIn (TxOut CtxUTxO, Bool), n ~ Text) => Map TxIn (TxOut CtxUTxO) -> Form s e n Source #
utxoRadioField :: forall s e n. (s ~ (TxIn, TxOut CtxUTxO), n ~ Text) => Map TxIn (TxOut CtxUTxO) -> Form s e n Source #
depositIdRadioField :: forall s e n. (s ~ (TxId, TxIn, TxOut CtxUTxO), n ~ Text) => [(TxId, UTxO)] -> Form s e n Source #
type LeftBracketChar = Char Source #
type CheckmarkChar = Char Source #
type RightBracketChar = Char Source #
Arguments
| :: (Ord k, Ord n) | |
| => LeftBracketChar | |
| -> CheckmarkChar | |
| -> RightBracketChar | |
| -> Lens' (Map k (a, Bool)) (Map k (a, Bool)) | The state lens for this value. |
| -> [((k, a, Bool), n, Text)] | The available choices, in order.
Each choice is represented by a resource name |
| -> Map k (a, Bool) | The initial form state. |
| -> FormFieldState (Map k (a, Bool)) e n |
type FormFieldRenderHelper a n = a -> Text -> Bool -> Widget n -> Widget n Source #
Arguments
| :: (Ord n, Eq a) | |
| => LeftBracketChar | |
| -> CheckmarkChar | |
| -> RightBracketChar | |
| -> Lens' s a | The state lens for this value. |
| -> [(a, n, Text)] | The available choices, in order. Each choice has a value
of type |
| -> FormFieldRenderHelper a n | Render widget helper. |
| -> s | The initial form state. |
| -> FormFieldState s e n |