widgets

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2022 License: MIT Imports: 15 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (

	// TaskEditorTaskSavedEventKey is the map key to the taskSaved observable
	TaskEditorTaskSavedEventKey = "task-saved"
	// TaskEditorEditCancelledEventKey is the map key to the editCancelled observable
	TaskEditorEditCancelledEventKey = "edit-cancelled"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DateEntry added in v0.3.1

type DateEntry struct {
	widget.Entry
	// contains filtered or unexported fields
}

DateEntry is an entry widget which accepts a date

func NewDateEntry added in v0.3.1

func NewDateEntry(minWidth float32, placeholder string, dateFormat string, stringBinding binding.String) *DateEntry

NewDateEntry returns a new DateEntry widget

func (*DateEntry) MinSize added in v0.3.1

func (d *DateEntry) MinSize() fyne.Size

MinSize is the minimum size of the widget

type TaskEditor

type TaskEditor struct {
	widget.DisableableWidget
	// contains filtered or unexported fields
}

TaskEditor is the main data structure for the TaskEditor widget

func NewTaskEditor

func NewTaskEditor() *TaskEditor

NewTaskEditor creates and initializes a new TaskEditor widget

func (*TaskEditor) CreateRenderer

func (te *TaskEditor) CreateRenderer() fyne.WidgetRenderer

CreateRenderer creates and initializes a new fyne.WidgetRenderer

func (*TaskEditor) GetDirtyTask

func (te *TaskEditor) GetDirtyTask() *models.TaskData

GetDirtyTask returns the current models.TaskData structure updated with the data from the widget

func (*TaskEditor) IsDirty

func (te *TaskEditor) IsDirty() bool

IsDirty determines if the editor fields have been modified from their original values

func (*TaskEditor) Observables

func (te *TaskEditor) Observables() map[string]rxgo.Observable

Observables returns a map of Observable objects used by this widget

func (*TaskEditor) SetTask

func (te *TaskEditor) SetTask(task *models.TaskData) error

SetTask sets the current models.TaskData struct

type Tasklist

type Tasklist struct {
	widget.Select
	// contains filtered or unexported fields
}

Tasklist is an extended widget.Select object that adds data binding for displaying a list of tasks

func NewTasklist

func NewTasklist() *Tasklist

NewTasklist creates a new instance of a Tasklist widget

func (*Tasklist) MinSize

func (t *Tasklist) MinSize() fyne.Size

MinSize returns the minimum size of this widget

func (*Tasklist) Refresh

func (t *Tasklist) Refresh()

Refresh redraws the task list

func (*Tasklist) SelectionBinding

func (t *Tasklist) SelectionBinding() binding.String

SelectionBinding returns the Select widget's data binding for the current selection

type TasklistItem

type TasklistItem struct {
	widget.BaseWidget
	// contains filtered or unexported fields
}

TasklistItem is the data struct for the TasklistItem widget

func NewTasklistItem

func NewTasklistItem() *TasklistItem

NewTasklistItem creates a new tasklistItem widget

func (*TasklistItem) CreateRenderer

func (i *TasklistItem) CreateRenderer() fyne.WidgetRenderer

CreateRenderer creates and returns a new fyne.WidgetRenderer

func (*TasklistItem) SetTask

func (i *TasklistItem) SetTask(newTask *models.TaskData) error

SetTask sets the current models.TaskData struct

Jump to

Keyboard shortcuts

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