Documentation ¶
Index ¶
Constants ¶
const (
TransactionDetailsPageID = "TransactionDetails"
)
const (
TransactionsPageID = "Transactions"
)
Variables ¶
This section is empty.
Functions ¶
func DisableLog ¶
func DisableLog()
DisableLog disables all library log output. Logging output is disabled by default until UseLogger is called.
Types ¶
type D ¶
type D = layout.Dimensions
type TransactionsPage ¶
type TransactionsPage struct { *load.Load // GenericPageModal defines methods such as ID() and OnAttachedToNavigator() // that helps this Page satisfy the app.Page interface. It also defines // helper methods for accessing the PageNavigator that displayed this page // and the root WindowNavigator. *app.GenericPageModal // contains filtered or unexported fields }
TransactionsPage shows transactions for a specific wallet or for all wallets. TODO: Add support for showing all wallet txs.
func NewTransactionsPage ¶
func NewTransactionsPage(l *load.Load, wallet sharedW.Asset) *TransactionsPage
func (*TransactionsPage) DisableUniformTab ¶ added in v1.1.0
func (pg *TransactionsPage) DisableUniformTab()
func (*TransactionsPage) HandleUserInteractions ¶
func (pg *TransactionsPage) HandleUserInteractions()
HandleUserInteractions is called just before Layout() to determine if any user interaction recently occurred on the page and may be used to update the page's UI components shortly before they are displayed. Part of the load.Page interface.
func (*TransactionsPage) Layout ¶
func (pg *TransactionsPage) Layout(gtx C) D
Layout draws the page UI components into the provided layout context to be eventually drawn on screen. Part of the load.Page interface.
func (*TransactionsPage) OnNavigatedFrom ¶
func (pg *TransactionsPage) OnNavigatedFrom()
OnNavigatedFrom is called when the page is about to be removed from the displayed window. This method should ideally be used to disable features that are irrelevant when the page is NOT displayed. NOTE: The page may be re-displayed on the app's window, in which case OnNavigatedTo() will be called again. This method should not destroy UI components unless they'll be recreated in the OnNavigatedTo() method. Part of the load.Page interface.
func (*TransactionsPage) OnNavigatedTo ¶
func (pg *TransactionsPage) OnNavigatedTo()
OnNavigatedTo is called when the page is about to be displayed and may be used to initialize page features that are only relevant when the page is displayed. Part of the load.Page interface.
type TxDetailsPage ¶
type TxDetailsPage struct { *load.Load // GenericPageModal defines methods such as ID() and OnAttachedToNavigator() // that helps this Page satisfy the app.Page interface. It also defines // helper methods for accessing the PageNavigator that displayed this page // and the root WindowNavigator. *app.GenericPageModal // contains filtered or unexported fields }
func NewTransactionDetailsPage ¶
func NewTransactionDetailsPage(l *load.Load, wallet sharedW.Asset, transaction *sharedW.Transaction) *TxDetailsPage
func (*TxDetailsPage) HandleUserInteractions ¶
func (pg *TxDetailsPage) HandleUserInteractions()
HandleUserInteractions is called just before Layout() to determine if any user interaction recently occurred on the page and may be used to update the page's UI components shortly before they are displayed. Part of the load.Page interface.
func (*TxDetailsPage) Layout ¶
func (pg *TxDetailsPage) Layout(gtx C) D
Layout draws the page UI components into the provided layout context to be eventually drawn on screen. Part of the load.Page interface.
func (*TxDetailsPage) OnNavigatedFrom ¶
func (pg *TxDetailsPage) OnNavigatedFrom()
OnNavigatedFrom is called when the page is about to be removed from the displayed window. This method should ideally be used to disable features that are irrelevant when the page is NOT displayed. NOTE: The page may be re-displayed on the app's window, in which case OnNavigatedTo() will be called again. This method should not destroy UI components unless they'll be recreated in the OnNavigatedTo() method. Part of the load.Page interface.
func (*TxDetailsPage) OnNavigatedTo ¶
func (pg *TxDetailsPage) OnNavigatedTo()
OnNavigatedTo is called when the page is about to be displayed and may be used to initialize page features that are only relevant when the page is displayed. Part of the load.Page interface.