Skip to content
Discussion options

You must be logged in to vote

Hi @msiwik-epruf,

You can add custom CSS to the column definition to define the text wrap behavior:

ui.table(
    columns=[
        {'name': 'name', 'label': 'Name', 'field': 'name', 'align': 'left', 'style': 'text-wrap: wrap'},
        {'name': 'age', 'label': 'Age', 'field': 'age'},
    ],
    rows=[
        {'name': 'Alice', 'age': 18},
        {'name': 'Bob', 'age': 21},
        {'name': 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam nec purus nec nunc ultricies'},
    ],
).classes('w-80')

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by msiwik-epruf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants