MCPcopy Create free account
hub / github.com/cogentcore/core / FileButton

Struct FileButton

core/filepicker.go:711–717  ·  view source on GitHub ↗

FileButton represents a [Filename] value with a button that opens a [FilePicker].

Source from the content-addressed store, hash-verified

709// FileButton represents a [Filename] value with a button
710// that opens a [FilePicker].
711type FileButton struct {
712 Button
713 Filename string
714
715 // Extensions are the target file extensions for the file picker.
716 Extensions string
717}
718
719func (fb *FileButton) WidgetValue() any { return &fb.Filename }
720

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected