Couleurs chaudes, placeholder pour les filtres
This commit is contained in:
@@ -6,4 +6,4 @@ server = app.server
|
|||||||
|
|
||||||
# To use `python run.py` (dev)
|
# To use `python run.py` (dev)
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
app.run_server(debug=True)
|
app.run(debug=True)
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ td[data-dash-column="objet"] {
|
|||||||
.dash-spreadsheet-container
|
.dash-spreadsheet-container
|
||||||
.dash-spreadsheet-inner
|
.dash-spreadsheet-inner
|
||||||
th.dash-header {
|
th.dash-header {
|
||||||
background-color: #666986;
|
background-color: #b33821;
|
||||||
color: white;
|
color: white;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -30,7 +30,11 @@ td[data-dash-column="objet"] {
|
|||||||
.dash-spreadsheet-container
|
.dash-spreadsheet-container
|
||||||
.dash-spreadsheet-inner
|
.dash-spreadsheet-inner
|
||||||
th.dash-filter {
|
th.dash-filter {
|
||||||
background-color: #d0d2e6;
|
background-color: #f0afa3;
|
||||||
|
}
|
||||||
|
|
||||||
|
#table tr:nth-child(even) td {
|
||||||
|
background-color: #feeeee;
|
||||||
}
|
}
|
||||||
|
|
||||||
#header > *,
|
#header > *,
|
||||||
|
|||||||
+3
-5
@@ -18,10 +18,8 @@ datatable = dash_table.DataTable(
|
|||||||
page_current=0,
|
page_current=0,
|
||||||
page_action="custom",
|
page_action="custom",
|
||||||
filter_action="custom",
|
filter_action="custom",
|
||||||
# filter_options={"case": "insensitive", "placeholder_text": "Filtrer..."},
|
filter_options={"case": "insensitive", "placeholder_text": "Filtrer..."},
|
||||||
columns=[
|
columns=[{"name": i, "id": i} for i in df.collect_schema().names()],
|
||||||
{"name": i, "id": i, "deletable": True, "selectable": False} for i in df.columns
|
|
||||||
],
|
|
||||||
selected_columns=[],
|
selected_columns=[],
|
||||||
selected_rows=[],
|
selected_rows=[],
|
||||||
# sort_action="native",
|
# sort_action="native",
|
||||||
@@ -32,7 +30,7 @@ datatable = dash_table.DataTable(
|
|||||||
style_cell_conditional=[
|
style_cell_conditional=[
|
||||||
{
|
{
|
||||||
"if": {"column_id": "objet"},
|
"if": {"column_id": "objet"},
|
||||||
"minWidth": "300px",
|
"minWidth": "350px",
|
||||||
"textAlign": "left",
|
"textAlign": "left",
|
||||||
"overflow": "hidden",
|
"overflow": "hidden",
|
||||||
"lineHeight": "14px",
|
"lineHeight": "14px",
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
operators = [
|
operators = [
|
||||||
["s<", "<"],
|
["s<", "<"],
|
||||||
["s>", ">"],
|
["s>", ">"],
|
||||||
["scontains", "contains"],
|
["icontains", "contains"],
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user