DuFolderSelector()

For use with DuAEF.DuScriptUI.
A "Browse" button for folders only, with an optional text field for the path.
This is not a real class, and cannot be instanciated.
Use DuAEF.DuScriptUI.addFolderSelector to create a selector.
The DuFolderSelector inherits the Group object from ScriptUI and has all of its properties and methods.

new DuFolderSelector()

Properties:
Name Type Description
path string The folder 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 folder, you can use the getFolder() method.
editText DuEditText | null The text field, if any.
button DuButton The "Browse" button.

Methods

static getFolder() → {Folder|null}

Gets the selected folder.
Returns:
Folder | null - The new Folder, if any. null if the Folder does not exist or the user has input an incorrect path.