datafield

package
v0.1.25 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataButton

type DataButton[T any] struct {
	*widget.Button
	Data     T
	OnTapped func(*DataButton[T]) `json:"-"`
}

func NewButton

func NewButton[T any](text string, icon fyne.Resource, data T,
	tapped func(*DataButton[T])) *DataButton[T]

func (*DataButton[T]) Tapped

func (btn *DataButton[T]) Tapped(*fyne.PointEvent)

type DataCheck

type DataCheck[T any] struct {
	*widget.Check
	Data     T
	OnTapped func(*DataCheck[T]) `json:"-"`
}

func NewCheck

func NewCheck[T any](text string, state bool, data T,
	tapped func(*DataCheck[T])) *DataCheck[T]

func (*DataCheck[T]) Tapped

func (btn *DataCheck[T]) Tapped(*fyne.PointEvent)

type DataEntry

type DataEntry[T any] struct {
	*widget.Entry
	Data    T
	Changed func(string, *DataEntry[T]) `json:"-"`
}

func NewEntry

func NewEntry[T any](text string, data T,
	change func(string, *DataEntry[T])) *DataEntry[T]

type DataSelect

type DataSelect[T any] struct {
	*widget.Select
	Data *SelectData[string, T]
}

func NewSelect

func NewSelect[T any](data *SelectData[string, T]) *DataSelect[T]

func (*DataSelect[T]) Value

func (sel *DataSelect[T]) Value() T

type SelectData

type SelectData[K comparable, V any] struct {
	*orderedmap.OrderedMap[K, V]
}

func NewSelectData

func NewSelectData[K comparable, V any]() *SelectData[K, V]

func (*SelectData[K, V]) Each

func (sd *SelectData[K, V]) Each(eachFunc func(K, V))

func (*SelectData[K, V]) Keys

func (sd *SelectData[K, V]) Keys() []K

func (*SelectData[K, V]) Parts

func (sd *SelectData[K, V]) Parts() ([]K, []V)

func (*SelectData[K, V]) Size

func (sd *SelectData[K, V]) Size() int

func (*SelectData[K, V]) Values

func (sd *SelectData[K, V]) Values() []V

type TimeLabel

type TimeLabel struct {
	*widget.Label
	// contains filtered or unexported fields
}

func NewTimeLabel

func NewTimeLabel(t *carbon.Carbon) *TimeLabel

func (*TimeLabel) Update

func (tl *TimeLabel) Update()

type TimePicker

type TimePicker struct {
	// contains filtered or unexported fields
}

func NewTimePicker

func NewTimePicker(t *carbon.Carbon, tl *TimeLabel) *TimePicker

func (*TimePicker) Render

func (tp *TimePicker) Render() *fyne.Container

Jump to

Keyboard shortcuts

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