Type Alias FVTTFilePickerBrowseOptions
activeSource?: string;
allowUpload?: boolean;
callback?: Function;
current?: string;
displayMode?: string;
favorites?: Map<string, globalThis.FavoriteFolder>;
glasspaneId?: string;
id?: string;
modal?: boolean;
modalOptions?: {
background: string;
closeOnInput: boolean;
styles: Record<string, string>;
transition: TransitionFunction;
transitionOptions: Record<string, any>;
};
onURLString?: (({ urlString: string }: any) => void);
onValidateURLString?: (({ urlString: string }: any) => Promise<boolean>);
redirectToRoot?: string[];
store?: MinimalWritable<string>;
tileSize?: boolean;
type?: string;
zIndex?: number;
}
- Foundry globalThis.FilePicker w/ expanded FVTTFilePickerControl options.
Type declaration
OptionalactiveSource ?: stringA current file source in 'data', 'public', or 's3'.
OptionalallowUpload ?: booleanA flag which permits explicitly disallowing upload, true by default.
Optionalcallback?: FunctionA callback function to trigger once a file has been selected.
Optionalcurrent?: stringThe current file path being modified, if any.
OptionaldisplayMode ?: stringThe picker display mode in FilePicker.DISPLAY_MODES.
Optionalfavorites?: Map<string, globalThis.FavoriteFolder>A map of favorite folder configuration objects.
OptionalglasspaneId ?: stringProvide the CSS ID of the glasspane to move the file picker app to after opening.
Optionalid?: stringA specific unique CSS app ID.
Optionalmodal?: booleanWhen true a modal file picker will be opened.
OptionalmodalOptions ?: {
background: string;
closeOnInput: boolean;
styles: Record<string, string>;
transition: TransitionFunction;
transitionOptions: Record<string, any>;
}Options for the modal glasspane / TJSGlasspane component.
background: string
close
On : booleanInput styles: Record<string, string>
transition: TransitionFunction
transition
Options : Record<string, any>
OptionalonURLString?: (({ urlString: string }: any) => void)Optional function invoked when URL string changes.
- ({ urlString: string }): void
Parameters
- { urlString: string }: any
Returns void
OptionalonValidateURLString ?: (({ urlString: string }: any) => Promise<boolean>)Optional validation function of selected URL string.
OptionalredirectTo ?: string[]Root Redirect to the root directory rather than starting in the source directory of one of these files.
Optionalstore?: MinimalWritable<string>A minimal writable store that is set with result.
OptionaltileSize ?: booleanDisplay the tile size configuration.
Optionaltype?: stringA type of file to target, in 'audio', 'image', 'video', 'imagevideo', 'folder', 'font', 'graphics', 'text', or 'any'.
OptionalzIndex ?: numberProvides an explicit
z-indexfor the file picker app.