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
FileGrid
chevron_left
Classes
class
FileGrid
Constructors
functions
FileGrid
Properties
data_object
GetDetails
data_object
GetGroupTitle
data_object
GetThumbnail
data_object
Grouping
data_object
OnFileActivated
data_object
OnFilePicked
data_object
OnFolderOpened
data_object
SelectedFile
data_object
SortColumn
data_object
SortDescending
data_object
View
Methods
functions
OnButtonTyped
functions
OnDeleted
functions
OnMouseWheel
functions
SetEntries
functions
SetSort
functions
Tick
FileGrid
A virtualized file view. Right-click for layouts or use Ctrl and the mouse wheel to change density.
class
Sandbox.UI
.
account_tree
extends
Panel
sealed
Sandbox.Engine
build
Constructors
1
FileGrid
(
)
Creates an empty file view in medium icon mode.
data_object
Properties
11
GetDetails
Func`3
Supplies size in bytes and modification time when displaying or sorting entries by these fields.
GetGroupTitle
Func`3
Supplies custom group titles for files and folders in tiled views.
GetThumbnail
Func`2
Supplies a thumbnail when a file becomes visible. Return null to use its file icon.
Grouping
FileGrouping
Grouping used by icon and Tiles views.
OnFileActivated
Action`1
Called when the user double-clicks a file or presses Enter on it.
OnFilePicked
Action`1
Called when the user picks a file.
OnFolderOpened
Action`1
Called when a folder is opened.
SelectedFile
string
Last picked file. Selecting a folder moves the highlight and keeps the picked path.
SortColumn
FileSortColumn
Current ordering field. Use SetSort to change it and its direction together.
SortDescending
bool
Whether the current sort runs from highest to lowest.
View
FileViewMode
Layout used for files and folders.
functions
Methods
6
OnButtonTyped
(
e
)
Arrow keys, Home and End select entries. Enter opens the selection. Ctrl+Shift+1 through Ctrl+Shift+8 choose a layout.
OnDeleted
(
)
Closes an open context menu when its file view is removed.
OnMouseWheel
(
value
)
Changes layout with Ctrl and the mouse wheel over the header or background.
SetEntries
(
folders
,
files
)
SetSort
(
column
,
descending
)
Sorts the current entries and future listings. Folders precede files in both directions.
Tick
(
)
Scrolls keyboard selections into view once the current layout has measured its cells.
Inheritance
Panel
FileGrid
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.