Skip to main content

EditorSproutyDialogsFileField

Inherits: MarginContainer

Description

Component that allows the user to select a file from the file system. Also can be configured to select a directory instead of a file.

Methods

Return TypeMethod
Stringget_value()
voidset_value(value: String)
voidopen_directory(open_dir: bool)
voiddisable_field(disable: bool)

Signals

signal path_changed(path: String)

Emitted when the file or folder path changes.


signal path_submitted(path: String)

Emitted when the file or folder path is submitted.


signal field_focus_exited

Emitted when the field loses focus.


Method Descriptions

func get_value() -> String

Returns the current value of the field.


func set_value(value: String) -> void

Set the current value of the field.


func open_directory(open_dir: bool) -> void

Configure the field to open a directory instead of a file.


func disable_field(disable: bool) -> void

Disable the field for editing.