Ajout du bouton Export (XLSX), les filtres natifs fonctionnent
This commit is contained in:
@@ -2,3 +2,4 @@
|
|||||||
*.egg-info
|
*.egg-info
|
||||||
__pycache__
|
__pycache__
|
||||||
.idea
|
.idea
|
||||||
|
.venv
|
||||||
|
|||||||
@@ -16,7 +16,8 @@ datatable = dash_table.DataTable(
|
|||||||
page_size=20,
|
page_size=20,
|
||||||
page_current=0,
|
page_current=0,
|
||||||
page_action="native",
|
page_action="native",
|
||||||
# filter_action="native",
|
filter_action="native",
|
||||||
|
filter_options={"case": "insensitive", "placeholder_text": "Filtrer..."},
|
||||||
columns=[
|
columns=[
|
||||||
{"name": i, "id": i, "deletable": True, "selectable": False} for i in df.columns
|
{"name": i, "id": i, "deletable": True, "selectable": False} for i in df.columns
|
||||||
],
|
],
|
||||||
@@ -24,6 +25,9 @@ datatable = dash_table.DataTable(
|
|||||||
selected_rows=[],
|
selected_rows=[],
|
||||||
sort_action="native",
|
sort_action="native",
|
||||||
sort_mode="multi",
|
sort_mode="multi",
|
||||||
|
export_format="xlsx",
|
||||||
|
export_columns="visible",
|
||||||
|
export_headers="ids",
|
||||||
)
|
)
|
||||||
|
|
||||||
app.layout = [
|
app.layout = [
|
||||||
|
|||||||
Reference in New Issue
Block a user