| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Hledger.UI.TransactionScreen
Synopsis
- tsNew :: AccountName -> [NumberedTransaction] -> NumberedTransaction -> Screen
- tsUpdate :: TransactionScreenState -> TransactionScreenState
- tsDraw :: UIState -> [Widget Name]
- tsHandle :: BrickEvent Name AppEvent -> EventM Name UIState ()
Documentation
tsNew :: AccountName -> [NumberedTransaction] -> NumberedTransaction -> Screen Source #
Construct a transaction screen showing one of a given list of transactions, with the ability to step back and forth through the list. Screen-specific arguments: the account whose transactions are being shown, the list of showable transactions, the currently shown transaction.
tsUpdate :: TransactionScreenState -> TransactionScreenState Source #
Update a transaction screen. This currently does nothing because the initialisation in rsHandle is not so easy to extract. To see the updated transaction, one must exit and re-enter the transaction screen. See also tsHandle.