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: {
[key: string]: string | null;
};
transition: TransitionFunction;
transitionOptions: {
[key: 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
Optional
activeSource ?: stringA current file source in 'data', 'public', or 's3'.
Optional
allowUpload ?: booleanA flag which permits explicitly disallowing upload, true by default.
Optional
callback?: FunctionA callback function to trigger once a file has been selected.
Optional
current?: stringThe current file path being modified, if any.
Optional
displayMode ?: stringThe picker display mode in FilePicker.DISPLAY_MODES.
Optional
favorites?: Map<string, globalThis.FavoriteFolder>A map of favorite folder configuration objects.
Optional
glasspaneId ?: stringProvide the CSS ID of the glasspane to move the file picker app to after opening.
Optional
id?: stringA specific unique CSS app ID.
Optional
modal?: booleanWhen true a modal file picker will be opened.
Optional
modalOptions ?: {
background: string;
closeOnInput: boolean;
styles: {
[key: string]: string | null;
};
transition: TransitionFunction;
transitionOptions: {
[key: string]: any;
};
}Options for the modal glasspane / TJSGlasspane component.
background: string
close
On : booleanInput styles: {
[key: string]: string | null;
}[key: string]: string | null
transition: TransitionFunction
transition
Options : {
[key: string]: any;
}[key: string]: any
Optional
onURLString?: (({ urlString: string }: any) => void)Optional function invoked when URL string changes.
- ({ urlString: string }): void
Parameters
- { urlString: string }: any
Returns void
Optional
onValidateURLString ?: (({ urlString: string }: any) => Promise<boolean>)Optional validation function of selected URL string.
Optional
redirectTo ?: string[]Root Redirect to the root directory rather than starting in the source directory of one of these files.
Optional
store?: MinimalWritable<string>A minimal writable store that is set with result.
Optional
tileSize ?: booleanDisplay the tile size configuration.
Optional
type?: stringA type of file to target, in 'audio', 'image', 'video', 'imagevideo', 'folder', 'font', 'graphics', 'text', or 'any'.
Optional
zIndex ?: numberProvides an explicit
z-index
for the file picker app.