Skip to content

Commit 6fecfd3

Browse files
authored
Clarify FileDropper upload progress indicator (#8684)
1 parent 1e0ca36 commit 6fecfd3

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

examples/reference/widgets/FileDropper.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"\n",
2828
"* **`accepted_filetypes`** (list): List of accepted file types. Can be mimetypes, file extensions or wild cards. For instance `['image/*']` will accept all images while `['.png', 'image/jpeg']` will only accepts PNGs and JPEGs.\n",
2929
"* **`chunk_size`** (int): Size in bytes per chunk transferred across the WebSocket (`default=10000000`, i.e. 10MB).\n",
30-
"* **`layout`** (Literal[\"circle\", \"compact\", \"integrated\"] | None): Compact mode will remove padding, integrated mode is used to render FilePond as part of a bigger element (and should not be used with `multiple=True`. Circle mode adjusts the item position offsets so buttons and progress indicators don't fall outside of the circular shape.\n",
30+
"* **`layout`** (Literal[\"circle\", \"compact\", \"integrated\"] | None): Compact mode removes padding. Integrated mode renders FilePond as part of a bigger element and should not be used with `multiple=True`. Circle mode keeps FilePond's per-file action buttons and upload progress indicator inside the circular drop area.\n",
3131
"* **`max_file_size`** (str): Maximum size of a file as a string with units given in KB or MB, e.g. 5MB or 750KB.\n",
3232
"* **`max_files`** (int): Maximum number of files that can be uploaded if `multiple=True`.\n",
3333
"* **`max_total_file_size`** (str): Maximum size of all uploaded files, as a string with units given in KB or MB, e.g. 5MB or 750KB.\n",

panel/widgets/input.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -344,10 +344,10 @@ class FileDropper(Widget):
344344

345345
layout: t.Literal["circle", "compact", "integrated"] | None = param.Selector(
346346
default=None, objects=["circle", "compact", "integrated"], doc="""
347-
Compact mode will remove padding, integrated mode is used to render
348-
FilePond as part of a bigger element. Circle mode adjusts the item
349-
position offsets so buttons and progress indicators don't fall outside
350-
of the circular shape.""") # type: ignore[assignment, ty:invalid-assignment]
347+
Compact mode removes padding. Integrated mode renders FilePond as part
348+
of a bigger element. Circle mode keeps FilePond's per-file action
349+
buttons and upload progress indicator inside the circular drop
350+
area.""") # type: ignore[assignment, ty:invalid-assignment]
351351

352352
max_file_size = param.String(default=None, doc="""
353353
Maximum size of a file as a string with units given in KB or MB,

0 commit comments

Comments
 (0)