hledger-ui
Safe HaskellNone
LanguageGHC2021

Hledger.UI.TransactionScreen

Synopsis

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.

tsDraw :: UIState -> [Widget Name] Source #

tsHandle :: BrickEvent Name AppEvent -> EventM Name UIState () Source #