Constructor
# new DuFileSelector()
Properties:
Name | Type | Description |
---|---|---|
path |
string
|
The file path, initialized with an empty string. Note that this may not point to an existing folder if the user entered an incorrect path in the text field. To be sure to get an existing file, you can use the getFile() method. |
editText |
DuEditText
|
null
|
The text field, if any. |
button |
DuButton
|
The "Browse" button. |
onChange |
DuFileSelector~onChange
|
A function called when the file has changed. |
Methods
# static getFile() → {File|null}
Gets the selected file.
The new File, if any. null if the File does not exist or the user has input an incorrect path.
File
|
null