Construct a new FilePicker
Title of the FilePicker
Add a button to the FilePicker
Note: This overrides any previous setButtonFactory
call
The button
Add allowed MIME type
MIME type to allow
Allow to pick directories besides files
Optional
allow: booleanTrue to allow picking directories
Construct the configured FilePicker
Disable navigation (view selection)
Set the button factory which is used to generate buttons from current view, path and selected nodes
Note: This overrides any previous addButton
call
The button factory
Set the container where the FilePicker will be mounted By default 'body' is used
The dialog container
Add filter function to filter file list of FilePicker
Filter function to apply
Set allowed MIME types
Array of allowed MIME types
Enable or disable picking multiple files
True to enable picking multiple files, false otherwise
Set FilePicker type based on legacy file picker types
The legacy filepicker type to emulate
Set starting path of the FilePicker
Path to start from picking
SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors SPDX-License-Identifier: AGPL-3.0-or-later