Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrUserDecline is returned when the user doesn't select the file. ErrUserDecline = errors.New("user exited the file selector without selecting a file") // ErrNotAvailable is return when the current OS isn't supported. ErrNotAvailable = errors.New("current OS not supported") )
Functions ¶
func NewConfigFromViewEvent ¶
NewConfigFromViewEvent creates a explorer.Config based on app.ViewEvent.
Types ¶
type CancelEvent ¶
type CancelEvent struct{}
CancelEvent is sent when the user cancels the file selector.
func (CancelEvent) ImplementsEvent ¶
func (CancelEvent) ImplementsEvent()
type ErrorEvent ¶
type ErrorEvent struct {
// contains filtered or unexported fields
}
ErrorEvent is issued when error occurs.
func (ErrorEvent) ImplementsEvent ¶
func (ErrorEvent) ImplementsEvent()
type OpenFileEvent ¶
type OpenFileEvent struct {
File io.ReadCloser
}
OpenFileEvent is sent as response to OpenFileOp.
func (OpenFileEvent) ImplementsEvent ¶
func (OpenFileEvent) ImplementsEvent()
type OpenFileOp ¶
OpenFileOp opens the file selector and returns the selected file. The Mimetype may filter the files that can be selected.
type SaveFileEvent ¶
type SaveFileEvent struct {
File io.WriteCloser
}
SaveFileEvent is sent as response to SaveFileOp.
func (SaveFileEvent) ImplementsEvent ¶
func (SaveFileEvent) ImplementsEvent()
type SaveFileOp ¶
SaveFileOp opens the file-picker to save a file, the file is created if it doesn't exist, or replace existent file. The Filename is a suggestion for the file name, the user can change it.
Click to show internal directories.
Click to hide internal directories.