-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[🐛 BUG] Applying width to a specific column in a tgb.table does not work #2286
Comments
This issue is not linked to the column name. |
resolves #2286 Co-authored-by: Fred Lefévère-Laoide <[email protected]>
A css workaround with tgb.Page(style={"taipy-table": {"th:nth-child(2)": {"min-width": "500px"}}}) as page:
tgb.table(data="{data}", properties="{properties_table}") |
I believe this is not fixed. I cannot change the width of a single column |
Is it fixed in develop ? |
Same thing. It seems like changing the width of one column is changing everything. If I configure every width for every column, I have a different behavior: from taipy.gui import Gui
import taipy.gui.builder as tgb
import pandas as pd
data = pd.DataFrame({"A C": [1, 2, 3], "B C": [4, 5, 6], "C C": [7, 8, 9]})
properties_table = {"width[B C]": "50px", "width[A C]": "500px", "width[C C]": "100px"}
with tgb.Page() as page:
tgb.table(data="{data}", properties="{properties_table}")
Gui(page=page).run() |
* table col width resolves #2286 * Fab's comment Co-authored-by: Fabien Lelaquais <[email protected]> * notSortable => sortable * Fab's comment Co-authored-by: Fabien Lelaquais <[email protected]> --------- Co-authored-by: Fred Lefévère-Laoide <[email protected]> Co-authored-by: Fabien Lelaquais <[email protected]>
Fixed in 4.0.2.dev2 |
What went wrong? 🤔
A customer requested for specific columns in his tgb.table to have a bigger width. The column names have spaces in them so using tgb.table(width__column_name="200px") won't work.
This example is supposed to work but applies the style to all columns instead:
Acceptance Criteria
Code of Conduct
The text was updated successfully, but these errors were encountered: