FileBrowserViewProvider
Since Plugin API: 1.0.0
File browser view provider - provides custom view modes
Signature
interface FileBrowserViewProvider { type: "view"; id: string; name: string; priority: number; icon: string; component: import("svelte").Component<FileBrowserViewProps>; columns?: ViewColumnDefinition[]; collectionOnly?: boolean; defaultItemSizePreset?: ViewItemSizePreset; getConfigurationItems?: (pane: PluginPaneContext, api: ViewAPI) => import("phoundry-ui").MenuItem[];}Members
| Name | Type | Required | Description |
|---|---|---|---|
type |
"view" |
yes | - |
id |
string |
yes | - |
name |
string |
yes | - |
priority |
number |
yes | Sort order when listing views (lower appears first). Built-in views use 1–6; extension views should use higher numbers. |
icon |
string |
yes | Icon for view switcher |
component |
import("svelte").Component<FileBrowserViewProps> |
yes | View component |
columns |
ViewColumnDefinition[] |
no | Optional: custom column configuration for this view |
collectionOnly |
boolean |
no | If true, this view is only available in collections (workspaces) |
defaultItemSizePreset |
ViewItemSizePreset |
no | Default item size when a folder has no per-folder override (itemSize null). Details family uses row-height ticks; Thumbnails, Masonry, and Gallery each have their own S/M/L grid ticks; Boards uses its column-width ticks. |
getConfigurationItems |
(pane: PluginPaneContext, api: ViewAPI) => import("phoundry-ui").MenuItem[] |
no | Inline view configuration items for the active pane. |