Type Alias FVTTFilePickerBrowseOptions
- Foundry fvtt.FilePicker w/ expanded FVTTFilePickerControl options.
activeSource?: string;
allowUpload?: boolean;
callback?: Function;
current?: string;
displayMode?: string;
favorites?: Map<string, FavoriteFolder>;
glasspaneId?: string;
id?: string;
modal?: boolean;
modalOptions?: {
background: string;
closeOnInput: boolean;
styles: { [key: string]: string };
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;
}
Properties
OptionalactiveSource 
A current file source in 'data', 'public', or 's3'.
OptionalallowUpload 
A flag which permits explicitly disallowing upload, true by default.
Optionalcallback
A callback function to trigger once a file has been selected.
Optionalcurrent
The current file path being modified, if any.
OptionaldisplayMode 
The picker display mode in FilePicker.DISPLAY_MODES.
Optionalfavorites
A map of favorite folder configuration objects.
OptionalglasspaneId 
Provide the CSS ID of the glasspane to move the file picker app to after opening.
Optionalid
A specific unique CSS app ID.
Optionalmodal
When true a modal file picker will be opened.
OptionalmodalOptions 
background: string;
closeOnInput: boolean;
styles: { [key: string]: string };
transition: TransitionFunction;
transitionOptions: { [key: string]: any };
}
Options for the modal glasspane / TJSGlasspane component.
OptionalonURLString  
Optional function invoked when URL string changes.
OptionalonValidateURLString   
Optional validation function of selected URL string.
OptionalredirectToRoot  
Redirect to the root directory rather than starting in the source directory of one of these files.
Optionalstore
A minimal writable store that is set with result.
OptionaltileSize 
Display the tile size configuration.
Optionaltype
A type of file to target, in 'audio', 'image', 'video', 'imagevideo', 'folder', 'font', 'graphics', 'text', or 'any'.
OptionalzIndex 
Provides an explicit z-index for the file picker app.