- FilePickerVue(resolve, reject): void | Promise<ImportedComponent<DefaultData<never>, DefaultMethods<never>, DefaultComputed, __VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
allowPickDirectory?: boolean;
buttons: IFilePickerButton[] | IFilePickerButtonFactory;
container?: string;
disabledNavigation?: boolean;
filterFn?: IFilePickerFilter;
mimetypeFilter?: string[];
multiselect?: boolean;
name: string;
path?: string;
}>, {
allowPickDirectory: boolean;
container: string;
disabledNavigation: boolean;
filterFn: undefined;
mimetypeFilter: (() => never[]);
multiselect: boolean;
path: undefined;
}>, {}>> | {
component: Promise<ImportedComponent<DefaultData<never>, DefaultMethods<never>, DefaultComputed, __VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
allowPickDirectory?: boolean;
buttons: IFilePickerButton[] | IFilePickerButtonFactory;
container?: string;
disabledNavigation?: boolean;
filterFn?: IFilePickerFilter;
mimetypeFilter?: string[];
multiselect?: boolean;
name: string;
path?: string;
}>, {
allowPickDirectory: boolean;
container: string;
disabledNavigation: boolean;
filterFn: undefined;
mimetypeFilter: (() => never[]);
multiselect: boolean;
path: undefined;
}>, {}>>;
delay?: number;
error?: ImportedComponent<DefaultData<never>, DefaultMethods<never>, DefaultComputed, DefaultProps, {}>;
loading?: ImportedComponent<DefaultData<never>, DefaultMethods<never>, DefaultComputed, DefaultProps, {}>;
timeout?: number;
} Parameters
- resolve: ((component: Component<DefaultData<never>, DefaultMethods<never>, DefaultComputed, __VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
allowPickDirectory?: boolean;
buttons: IFilePickerButton[] | IFilePickerButtonFactory;
container?: string;
disabledNavigation?: boolean;
filterFn?: IFilePickerFilter;
mimetypeFilter?: string[];
multiselect?: boolean;
name: string;
path?: string;
}>, {
allowPickDirectory: boolean;
container: string;
disabledNavigation: boolean;
filterFn: undefined;
mimetypeFilter: (() => never[]);
multiselect: boolean;
path: undefined;
}>, {}>) => void)- (component): void
Parameters
- component: Component<DefaultData<never>, DefaultMethods<never>, DefaultComputed, __VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
allowPickDirectory?: boolean;
buttons: IFilePickerButton[] | IFilePickerButtonFactory;
container?: string;
disabledNavigation?: boolean;
filterFn?: IFilePickerFilter;
mimetypeFilter?: string[];
multiselect?: boolean;
name: string;
path?: string;
}>, {
allowPickDirectory: boolean;
container: string;
disabledNavigation: boolean;
filterFn: undefined;
mimetypeFilter: (() => never[]);
multiselect: boolean;
path: undefined;
}>, {}>
Returns void
- reject: ((reason?: any) => void)
- (reason?): void
Returns void
Returns void | Promise<ImportedComponent<DefaultData<never>, DefaultMethods<never>, DefaultComputed, __VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
allowPickDirectory?: boolean;
buttons: IFilePickerButton[] | IFilePickerButtonFactory;
container?: string;
disabledNavigation?: boolean;
filterFn?: IFilePickerFilter;
mimetypeFilter?: string[];
multiselect?: boolean;
name: string;
path?: string;
}>, {
allowPickDirectory: boolean;
container: string;
disabledNavigation: boolean;
filterFn: undefined;
mimetypeFilter: (() => never[]);
multiselect: boolean;
path: undefined;
}>, {}>> | {
component: Promise<ImportedComponent<DefaultData<never>, DefaultMethods<never>, DefaultComputed, __VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
allowPickDirectory?: boolean;
buttons: IFilePickerButton[] | IFilePickerButtonFactory;
container?: string;
disabledNavigation?: boolean;
filterFn?: IFilePickerFilter;
mimetypeFilter?: string[];
multiselect?: boolean;
name: string;
path?: string;
}>, {
allowPickDirectory: boolean;
container: string;
disabledNavigation: boolean;
filterFn: undefined;
mimetypeFilter: (() => never[]);
multiselect: boolean;
path: undefined;
}>, {}>>;
delay?: number;
error?: ImportedComponent<DefaultData<never>, DefaultMethods<never>, DefaultComputed, DefaultProps, {}>;
loading?: ImportedComponent<DefaultData<never>, DefaultMethods<never>, DefaultComputed, DefaultProps, {}>;
timeout?: number;
}
FilePicker Vue component (implemented as async component)
Example