filepicker

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2020 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(options ...seed.Option) seed.Seed

New returns a new filepicker widget.

func SelectFile

func SelectFile(handler func(File) client.Script) js.Script

SelectFile asks the user to select a file, if and only if they do select a file, the handler will be called. There is no way to tell if the user did not select a file.

func Update

func Update(a File) seed.Option

Update the attachment when a file is picked.

Types

type File

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

func NewFile

func NewFile() File

func (File) GetBool

func (a File) GetBool() js.Bool

func (File) GetFile

func (a File) GetFile() js.Value

func (File) GetValue

func (a File) GetValue() js.Value

func (File) Set

func (a File) Set(v js.Value) func(js.Ctx)

Jump to

Keyboard shortcuts

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