screens

package
v0.0.0-...-2b2f647 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 11, 2024 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Label widgetType = iota
	Check
	Entry
)

Variables

View Source
var (
	// Tutorials defines the metadata for each tutorial
	Tutorials = map[string]Screen{
		"welcome": {
			Title:      "Welcome",
			Intro:      "",
			View:       welcomeScreen,
			SupportWeb: true,
		},
		"configuration": {Title: "Configuration",
			Intro:      "Global configuration.",
			View:       configuration,
			SupportWeb: true,
		},

		"rollout": {Title: "Savings",
			Intro:      "Estimate savings and optionally apply our automated savings engine.",
			View:       rollout,
			SupportWeb: true,
		},
	}

	// ScreenIndex  defines how our tutorials should be laid out in the index tree
	ScreenIndex = map[string][]string{
		"": {"welcome",
			"configuration",
			"rollout",
		},
	}
)

Functions

This section is empty.

Types

type ActiveHeader

type ActiveHeader struct {
	widget.Label
	OnTapped func()
}

ActiveHeader represents a table header that can handle taps.

func (*ActiveHeader) Tapped

func (h *ActiveHeader) Tapped(_ *fyne.PointEvent)

Tapped is called when the header is tapped.

func (*ActiveHeader) TappedSecondary

func (h *ActiveHeader) TappedSecondary(_ *fyne.PointEvent)

TappedSecondary is called on a secondary tap (right-click, long-press, etc.).

type ColumnInfo

type ColumnInfo struct {
	Header         string
	Type           widgetType
	DataKey        string // New field to identify the data
	EntryValidator fyne.StringValidator
	PlaceHolder    string
}

type Screen

type Screen struct {
	Title, Intro string
	View         func(w fyne.Window, c *core.Launcher) fyne.CanvasObject
	SupportWeb   bool
	Core         *core.Launcher
}

Tutorial defines the data structure for a tutorial

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL