entry

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateBaseDir

func CreateBaseDir(m Manager, baseDir binding.String)

func CreateFileDialog

func CreateFileDialog(m Manager, key string, value string, baseDir binding.String, isDir bool, isRelative bool)

func DialogValue added in v0.7.1

func DialogValue(m Manager, key string) string

func FormItem

func FormItem[T any](m Manager, key string, values ...T) *widget.FormItem

func FormItemFileDialog

func FormItemFileDialog(m Manager, key string) *widget.FormItem

func GetBaseDirFormItem

func GetBaseDirFormItem(m Manager, name string) *widget.FormItem

func GetFileDialog

func GetFileDialog(m Manager, name string) *widget.FormItem

func Value

func Value[T any](m Manager, key string) (t T)

Types

type Entry

type Entry[T any] interface {
	Enable(bool)
	Binding() binding.DataItem
	Set(t T)
	Value() T
	FormItem() *widget.FormItem
}

func GetEntry

func GetEntry[T any](m Manager, key string) Entry[T]

func NewEntry

func NewEntry[T any](m Manager, kind Kind, key string, value T) Entry[T]

func NewSelectEntry

func NewSelectEntry(m Manager, key string, value string, possible []string) Entry[string]

func NewSelectFormEntry added in v0.7.2

func NewSelectFormEntry(key string, value any, possible []string) Entry[string]

func NewStringFormEntry

func NewStringFormEntry(key string, value any) Entry[string]

type Kind

type Kind byte
const (
	KindBool Kind
	KindString
	KindMultiLine
)

type Manager

type Manager interface {
	// contains filtered or unexported methods
}

func NewManager

func NewManager() Manager

type SelectFormEntry added in v0.7.2

type SelectFormEntry struct {
	Entry *widget.Select
	// contains filtered or unexported fields
}

func (*SelectFormEntry) Binding added in v0.7.2

func (e *SelectFormEntry) Binding() binding.DataItem

func (*SelectFormEntry) Clear added in v0.7.2

func (e *SelectFormEntry) Clear()

func (*SelectFormEntry) DataChanged added in v0.7.2

func (e *SelectFormEntry) DataChanged()

func (*SelectFormEntry) Enable added in v0.7.2

func (e *SelectFormEntry) Enable(enable bool)

func (*SelectFormEntry) FormItem added in v0.7.2

func (e *SelectFormEntry) FormItem() *widget.FormItem

func (*SelectFormEntry) Set added in v0.7.2

func (e *SelectFormEntry) Set(value string)

func (*SelectFormEntry) Value added in v0.7.2

func (e *SelectFormEntry) Value() string

Jump to

Keyboard shortcuts

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