Lurch web app user interface

Class

FolderContentsItem

An item that can be added to a Dialog to allow the user to browse the contents of a FileSystem and interact with the files therein.

Constructor

new FolderContentsItem(fileSystem, initialPathopt, nameopt)

Construct a new folder contents item for browsing the given file system. Optionally you may also specify in which subfolder the browsing begins.

Parameters

  • fileSystem FileSystem

    the file system to browse

  • initialPath String <optional>

    the path to start in (defaults to the file system root, which works for every file system, even those that do not have subfolders)

  • name String <optional>

    the name to give this item, defaults to a simplified version of the name of the given fileSystem

Source

Classes

FolderContentsItem

Methods

getPath() → {String}

This is initially set in the constructor, but it may change as the user browses the contents of the file system.

Returns

  • String

    the current path being browsed

Source

setPath(newPath)

This sets the path that should be shown in the item and forces a repopulation of the item's contents based on that new path. The new path must be valid or the behavior of the item hereafter is undefined.

Parameters

  • newPath String

    the new path to display

Source