custom_widgets

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: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetValueFromDataItem

func GetValueFromDataItem(di binding.DataItem) (result interface{}, ok bool)

Types

type Action

type Action struct {
	*widget.ToolbarAction
}

type ButtonWithPopups

type ButtonWithPopups struct {
	*widget.Button
	// contains filtered or unexported fields
}

func NewButtonWithPopups

func NewButtonWithPopups(label string, items ...*fyne.MenuItem) *ButtonWithPopups

type Callbacks

type Callbacks struct {
	GetItemKey    func(item interface{}) string
	GetItemFields func(item interface{}) []string
	OnEditItem    func(item interface{})
}

type DynamicList

type DynamicList struct {
	Items []interface{}
	// contains filtered or unexported fields
}

func NewDynamicList

func NewDynamicList(callbacks Callbacks, confirmDelete bool) *DynamicList

func (*DynamicList) AddItem

func (l *DynamicList) AddItem(item interface{})

func (*DynamicList) Clear

func (l *DynamicList) Clear()

func (*DynamicList) Draw

func (l *DynamicList) Draw() fyne.CanvasObject

func (*DynamicList) Refresh

func (l *DynamicList) Refresh()

func (*DynamicList) Reset

func (l *DynamicList) Reset()

type OpenDirDialog

type OpenDirDialog struct {
	*widget.ToolbarAction
	BaseDir    binding.String
	Value      binding.String
	IsRelative bool
}

func (*OpenDirDialog) Get

func (o *OpenDirDialog) Get() string

func (*OpenDirDialog) Handle

func (o *OpenDirDialog) Handle()

func (*OpenDirDialog) SetAction

func (o *OpenDirDialog) SetAction(a *widget.ToolbarAction)

type OpenFileDialog

type OpenFileDialog struct {
	*widget.ToolbarAction
	BaseDir    binding.String
	Value      binding.String
	IsRelative bool
}

func (*OpenFileDialog) Get

func (o *OpenFileDialog) Get() string

func (*OpenFileDialog) Handle

func (o *OpenFileDialog) Handle()

func (*OpenFileDialog) SetAction

func (o *OpenFileDialog) SetAction(a *widget.ToolbarAction)

type OpenFileDialogContainer

type OpenFileDialogContainer struct {
	*fyne.Container
	OpenFileDialogHandler OpenFileDialogHandler
}

type OpenFileDialogHandler

type OpenFileDialogHandler interface {
	widget.ToolbarItem
	Handle()
	Get() string
	SetAction(a *widget.ToolbarAction)
}

Jump to

Keyboard shortcuts

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