Documentation
¶
Index ¶
Constants ¶
View Source
const SaveDelay = 5 * time.Second
SaveDelay is the delay to wait before saving.
Variables ¶
This section is empty.
Functions ¶
func IsExpanded ¶
func IsExpanded(b traverse.Breadcrumber) bool
IsExpanded returns true if the current breadcrumb node is expanded.
func Restore ¶
func Restore(b traverse.Breadcrumber, asetter ActiveSetter)
Restore restores the expand state by calling SetActive. This is meant to be used on a ToggledButton.
func Save ¶
func Save()
Save saves the list of paths. This function is not thread-safe. It is also non-blocking.
func Update ¶
func Update(b traverse.Breadcrumber, expanded bool)
Types ¶
type ActiveSetter ¶
type ActiveSetter interface {
SetActive(bool)
}
ActiveSetter is an interface for all widgets that allow setting the active state.
Click to show internal directories.
Click to hide internal directories.