hledger-ui
Safe HaskellNone
LanguageGHC2021

Hledger.UI.CashScreen

Synopsis

Documentation

csNew :: UIOpts -> Day -> Journal -> Maybe AccountName -> Screen Source #

Construct a cash accounts screen listing the appropriate set of accounts, with the appropriate one selected. Screen-specific arguments: the account to select if any.

csUpdate :: UIOpts -> Day -> Journal -> AccountsScreenState -> AccountsScreenState Source #

Update a balance sheet screen's state from these options, reporting date, and journal.

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

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