Skip to content

Allow VFS picker clients to hide toolbar and context menus - #98

Open
DeBaschdi wants to merge 2 commits into
thunderbird:masterfrom
DeBaschdi:feature/vfs-toolkit-configurable-toolbar
Open

Allow VFS picker clients to hide toolbar and context menus#98
DeBaschdi wants to merge 2 commits into
thunderbird:masterfrom
DeBaschdi:feature/vfs-toolkit-configurable-toolbar

Conversation

@DeBaschdi

Copy link
Copy Markdown
Contributor

Summary

Add optional picker UI controls for clients that need a focused selection workflow without maintaining local patches of the VFS toolkit.

  • showToolbarActions: false hides built-in toolbar actions and custom picker buttons.
  • showContextMenu: false hides context menus for files, folders, and the list background.
  • The name filter and optional file-type filter remain available when toolbar actions are hidden.

Both options are available on:

  • showSelectFilePicker
  • showBrowseFilePicker
  • showSaveFilePicker
  • showDirectoryPicker

Example

const entries = await vfs.showSelectFilePicker({
  multiple: true,
  showToolbarActions: false,
  showContextMenu: false,
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant