Alignement à droite pour les nombres
This commit is contained in:
+4
-1
@@ -361,6 +361,7 @@ def setup_table_columns(
|
|||||||
dff, hideable: bool = True, exclude: list = None, new_columns: list = None
|
dff, hideable: bool = True, exclude: list = None, new_columns: list = None
|
||||||
) -> tuple:
|
) -> tuple:
|
||||||
# Liste finale de colonnes
|
# Liste finale de colonnes
|
||||||
|
markdown_exceptions = ["montant", "titulaire_distance", "distance", "dureeMois"]
|
||||||
columns = []
|
columns = []
|
||||||
tooltip = {}
|
tooltip = {}
|
||||||
for column_id in dff.columns:
|
for column_id in dff.columns:
|
||||||
@@ -377,10 +378,12 @@ def setup_table_columns(
|
|||||||
column_name = column_id
|
column_name = column_id
|
||||||
column_object = {"title": column_name, "description": ""}
|
column_object = {"title": column_name, "description": ""}
|
||||||
|
|
||||||
|
presentation = "input" if column_id in markdown_exceptions else "markdown"
|
||||||
|
|
||||||
column = {
|
column = {
|
||||||
"name": column_name,
|
"name": column_name,
|
||||||
"id": column_id,
|
"id": column_id,
|
||||||
"presentation": "markdown",
|
"presentation": presentation,
|
||||||
"type": "text",
|
"type": "text",
|
||||||
"format": {"nully": "N/A"},
|
"format": {"nully": "N/A"},
|
||||||
"hideable": hideable,
|
"hideable": hideable,
|
||||||
|
|||||||
Reference in New Issue
Block a user