Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type D ¶
type D = layout.Dimensions
type SuggestionAcceptedEvent ¶
type SuggestionAcceptedEvent[T comparable] struct { // Suggestion is the chosen entity. Suggestion T }
SuggestionAcceptedEvent indicates that the user has chosen a suggestion.
func (SuggestionAcceptedEvent[T]) ImplementsEvent ¶
func (SuggestionAcceptedEvent[T]) ImplementsEvent()
type SuggestionCancelEvent ¶
type SuggestionCancelEvent[T any] struct{}
SuggestionCancelEvent indicates that the editor in the entity no longer wants suggestions for entities to insert.
func (SuggestionCancelEvent[T]) ImplementsEvent ¶
func (SuggestionCancelEvent[T]) ImplementsEvent()
type SuggestionCreateNewEvent ¶
SuggestionCreateNewEvent indicates that the user has requested to make a new entity from the current input text.
func (SuggestionCreateNewEvent[T]) ImplementsEvent ¶
func (SuggestionCreateNewEvent[T]) ImplementsEvent()
type SuggestionRequestEvent ¶
type SuggestionRequestEvent[T any] struct { // Text is the user composition to base the suggestions upon. Text string }
SuggestionRequestEvent indicates that the editor in the entity wants suggestions for entities to insert.
func (SuggestionRequestEvent[T]) ImplementsEvent ¶
func (SuggestionRequestEvent[T]) ImplementsEvent()
type Suggestor ¶
type Suggestor[T comparable] struct { Current int Options widget.List // After the first layout, there should always be one more clickable // than entity. The final clickable is used for the "create new entity" // option. Clickables []*widget.Clickable Entities []T // contains filtered or unexported fields }
Suggestor displays suggestions for an editor.
type TransactionSubmittedEvent ¶
type TransactionSubmittedEvent struct {
Value ledger.Transaction
}
type TxChangedEvent ¶
type TxChangedEvent struct{}
func (TxChangedEvent) ImplementsEvent ¶
func (TxChangedEvent) ImplementsEvent()
type TxEditor ¶
type TxEditor struct { Editor widget.Editor Suggestor Suggestor[string] // contains filtered or unexported fields }
func (*TxEditor) ResolveSuggestionCreate ¶
ResolveSuggestionCreate should be invoked when the entity requested by SuggestionCreateNewEvent is created.
func (*TxEditor) SetSuggestions ¶
func (*TxEditor) Suggesting ¶
type TxForm ¶
type TxForm struct { DateEditor widget.Editor PayeeEditor TxEditor Rows []*TxRow Hints []string SubmitBtn widget.Clickable // contains filtered or unexported fields }
func (*TxForm) SetAccountSuggestions ¶
Click to show internal directories.
Click to hide internal directories.