FabGL
ESP32 Display Controller and Graphics Library

◆ folderBrowser()

InputResult folderBrowser ( char const *  titleText,
char const *  directory = "/",
char const *  buttonOKText = "Close" 
)

Shows a dialog with files and folders and buttons to create new folders, delete and rename folders and files.

Parameters
titleTextOptional title of the dialog (nullptr = the dialogs hasn't a title)
directoryInitial directory. At least one file system must be mounted
buttonOKTextOptional text for OK button (nullptr = hasn't OK button). Default is "Close".
Returns
Dialog box result (Cancel or Enter)

Example:

InputBox ib;
ib.begin();
if (FileBrowser::mountSDCard(false, "/SD"))
  ib.fileBrowser("File Browser", "/SD");
ib.end();

Definition at line 281 of file inputbox.cpp.