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

Constructors

functionsFileNavigationBar

Properties

data_objectExtensiondata_objectFolderdata_objectOnFilterChangeddata_objectOnFolderChangeddata_objectSearchText

Methods

functionsNavigatefunctionsResetfunctionsSetExtensions
FileNavigationBar
Folder breadcrumbs, back and forward history, filename search and an optional extension filter.
class Sandbox.UI .account_tree extends Panel
sealedSandbox.Engine

build Constructors 1

FileNavigationBar ()
Creates an empty navigation history at the root.

data_object Properties 5

Extension
string
Selected extension including the leading dot, or an empty string for all files.
Folder
string
Current root-relative folder.
OnFilterChanged
Action
Called when the search text or file type changes.
OnFolderChanged
Action`1
Called when navigation changes the current folder.
SearchText
string
Text entered in the search field.

functions Methods 3

Navigate (folder)
Opens a root-relative folder and adds it to the history.
Reset (name)
Starts a new history at the named root and clears the search text.
SetExtensions (extensions)
Sets the available extension filters and returns to All files. An empty list hides the selector.

Inheritance

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