collections

package
v0.1.0-beta Latest Latest
Warning

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

Go to latest
Published: May 24, 2024 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collection

type Collection struct {
	Title *widgets.EditableLabel
	// contains filtered or unexported fields
}

func New

func New(collection *domain.Collection) *Collection

func (*Collection) HidePrompt

func (c *Collection) HidePrompt()

func (*Collection) Layout

func (c *Collection) Layout(gtx layout.Context, theme *chapartheme.Theme) layout.Dimensions

func (*Collection) SetDataChanged

func (c *Collection) SetDataChanged(dirty bool)

func (*Collection) SetOnDataChanged

func (c *Collection) SetOnDataChanged(f func(id string, data any))

func (*Collection) SetOnSave

func (c *Collection) SetOnSave(f func(id string))

func (*Collection) SetOnTitleChanged

func (c *Collection) SetOnTitleChanged(f func(string))

func (*Collection) ShowPrompt

func (c *Collection) ShowPrompt(title, content, modalType string, onSubmit func(selectedOption string, remember bool), options ...widgets.Option)

Jump to

Keyboard shortcuts

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