English
Several roots
sources mounts several folders or files in one list; path is then ignored.
Actions
No files
0 loaded file(s) · 0 B total
md
<FileList
base="https://pan.example.com"
title="Several roots"
:sources="[
{ path: '/Sample files' },
{ path: '/exams', title: 'Past exams', expanded: true },
{ path: '/Sample files/Lecture notes.pdf' }
]"
/>- A folder path becomes a root folder, closed at first;
expandedopens all roots or one source - A file path becomes a single file row, ready to preview or download
- Ticking a root loads and ticks every file under it; in the ZIP, each root's name (
titleor the last path segment) is a top-level folder, and a file root keeps its file name - Each source can have its own
titleandpassword. Sources without apassworduse the component'spasswordor what the reader types; a folder that needs a password asks in its own row - Roots keep the order of
sources; their contents are sorted by name, size or date as usual
ts
interface FileListSource {
path: string
title?: string
password?: string
expanded?: boolean
}