s&
About
The Project
infoAbout s&box mapRoadmap monitoringMetricsEngine startup and usage numbers
Updates
newspaperLatest News
jams
Workshop
Steam
open_in_newSteam Workshop
Assets
view_in_arModels textureMaterials apparelClothing
Forum
Learn
Documentation
rocket_launchGetting Started docsDocumentation apiAPI Reference
Resources
schoolTutorials manage_searchCode Search
Get s&box
Sign in with Steam
Api
Classes
FileBrowser
chevron_left Classes
class
FileBrowser

Constructors

functionsFileBrowser

Properties

data_objectGriddata_objectIncludeFiledata_objectNavigationdata_objectOnFilePickeddata_objectOnFolderChangeddata_objectSourcedata_objectTree

Methods

functionsRefreshfunctionsSetSourcesfunctionsTick
FileBrowser
Browses a supplied hierarchy with a folder tree, breadcrumbs, search, and a file grid. Opening another folder keeps the last picked file.
class Sandbox.UI .account_tree extends Panel
sealedSandbox.Engine

build Constructors 1

FileBrowser ()
Creates the browser. Set Source to show folders and files.

data_object Properties 7

Grid
FileGrid
File results. Supply thumbnails through its GetThumbnail callback.
IncludeFile
Func`2
Optional predicate applied to files before the user-selected extension filter.
Navigation
FileNavigationBar
Location, history, search, and file-type selector.
OnFilePicked
Action`1
Called when the user picks a file. Navigating folders does not pick a file.
OnFolderChanged
Action`1
Called when the current folder changes.
Source
IFileBrowserSource
Source to browse. Changing it starts a new history and clears the previous file selection.
Tree
FolderTree
Folder rail on the left side of the browser.

functions Methods 3

Refresh ()
Reads the current folder and its visible branches again.
SetSources (sources)
Opens independent roots in the folder rail. Back and Forward can cross between them.
Tick ()
Updates search results after typing settles.

Inheritance

Panel
FileBrowser
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.
Facepunch
  • News
  • Docs
  • Metrics
  • FAQ
  • Forum
  • Discord
  • Twitter