Hi am attempting to limit the overall width of a Table and the width of the columns in the table. For the column widths, I created a dictionary for the DataTable columns in the @app block of the code and used @out for the variable to link to the Columns property in the no-code editor UI.
# Why doesn't this work?
search_dict =
map(col_attr -> Dict(
":name" => col_attr[1],
":label" => col_attr[1],
":classes" => col_attr[2]
)
,[["Column1","col-1"],["Column2","col-1"],["Column3","col-4"],["Column4","col-4"],["Column5","col-2"]]
) # Only show these columns
@out search_dict_columns = [join(["$k = \"$(v)\"" for (k, v) in d], " ") for d in search_dict ]
However, when using this the table does not display the data when its data variable is updated. I can use
@out search_dict_columns = ["Column1","Column2","Column3","Column4","Column5"]
However, this does not limit the width of the columns and causes the columns to extend beyond the "div" section it is in. This overlaps the next section and makes the UI unworkable.
How do you set the column widths for a Table component?
Hi am attempting to limit the overall width of a Table and the width of the columns in the table. For the column widths, I created a dictionary for the DataTable columns in the @app block of the code and used @out for the variable to link to the Columns property in the no-code editor UI.
However, when using this the table does not display the data when its data variable is updated. I can use
However, this does not limit the width of the columns and causes the columns to extend beyond the "div" section it is in. This overlaps the next section and makes the UI unworkable.
How do you set the column widths for a Table component?