file_selector class
Allows uploading a file content.
Methods¶
__init__() ¶
__init__(
content=None,
label=None,
on_action=None,
multiple=False,
extensions=".csv,.xlsx",
drop_message="Drop here to Upload",
notify=True,
width=None,
active=True,
id=None,
properties=None,
class_name=None,
hover_text=None,
) -> None
Create a new file_selector
element.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
|
str
|
The path or the list of paths of the uploaded files. |
None
|
|
str
|
The label of the button. |
None
|
|
Union[str, Callable]
|
A function or the name of a function that will be triggered.
|
None
|
|
bool
|
If set to True, multiple files can be uploaded. |
False
|
|
str
|
The list of file extensions that can be uploaded. |
.csv,.xlsx
|
|
str
|
The message that is displayed when the user drags a file above the button. |
Drop here to Upload
|
|
bool
|
If set to False, the user won't be notified of upload finish. |
True
|
|
Union[str, int]
|
The width of the element. |
None
|
|
bool
|
Indicates if this component is active. |
True
|
|
str
|
The identifier that is assigned to the rendered HTML component. |
None
|
|
dict[str, Any]
|
Bound to a dictionary that contains additional properties for this element. |
None
|
|
str
|
The list of CSS class names that are associated with the generated HTML Element. |
None
|
|
str
|
The information that is displayed when the user hovers over this element. |
None
|