s&
About
The Project
info
About s&box
map
Roadmap
monitoring
Metrics
Engine startup and usage numbers
Updates
newspaper
Latest News
jams
Workshop
Steam
open_in_new
Steam Workshop
Assets
view_in_ar
Models
texture
Materials
apparel
Clothing
Forum
Learn
Documentation
rocket_launch
Getting Started
docs
Documentation
api
API Reference
Resources
school
Tutorials
manage_search
Code Search
Get s&box
Sign in with Steam
Api
Classes
FileBrowser
chevron_left
Classes
class
FileBrowser
Constructors
functions
FileBrowser
Properties
data_object
Grid
data_object
IncludeFile
data_object
Navigation
data_object
OnFilePicked
data_object
OnFolderChanged
data_object
Source
data_object
Tree
Methods
functions
Refresh
functions
SetSources
functions
Tick
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
sealed
Sandbox.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.