You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way to use column headers that have a space in them?
For example, I'm using the sortableTable class and \Team_Name = Col('Team_Name), which works well. However, is there a way to use this library/function if I wanted to rename my column header to 'Team Name'?
The text was updated successfully, but these errors were encountered:
The string that you pass as the first argument to Col is used as the table header, eg:
fromflask_tableimportTable, ColclassItemTable(Table):
name=Col('Name with spaces')
description=Col('Description with with spaces')
items= [{'name': 'Name1', 'description': 'Description1'}]
table=ItemTable(items)
print(table.__html__())
outputs:
<table><thead><tr><th>Name with spaces</th><th>Description with with spaces</th></tr></thead><tbody><tr><td>Name1</td><td>Description1</td></tr></tbody></table>
Is there a way to use column headers that have a space in them?
For example, I'm using the sortableTable class and \Team_Name = Col('Team_Name), which works well. However, is there a way to use this library/function if I wanted to rename my column header to 'Team Name'?
The text was updated successfully, but these errors were encountered: