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
FolderTree
chevron_left Classes
class
FolderTree

Constructors

functionsFolderTree

Properties

data_objectGetFolderIcondata_objectOnFolderSelecteddata_objectRootsdata_objectSelectedSourcedata_objectSource

Methods

functionsRefreshfunctionsSelectFolderfunctionsSetRoots
FolderTree
A virtualized tree of independently browsable file sources.
class Sandbox.UI .account_tree extends Panel
sealedSandbox.Engine

build Constructors 1

FolderTree ()

data_object Properties 5

GetFolderIcon
Func`3
Supplies a material icon and optional tint for each folder. The root path is empty.
OnFolderSelected
Action`1
Called when a folder is selected. SelectedSource identifies the root the path belongs to.
Roots
ReadOnlyCollection`1
File sources shown at the top level, in display order.
SelectedSource
IFileBrowserSource
Source containing the current selection.
Source
IFileBrowserSource
Convenience for a tree with a single root. In a multi-root tree this returns the first root.

functions Methods 3

Refresh ()
Reads the visible branches and their icons again.
SelectFolder (path)
Reveals a folder in the selected root, or the first root when nothing is selected.
SetRoots (sources)
Replaces the top-level sources. Each root has its own paths, expansion and selection identity.

Inheritance

Panel
FolderTree
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