Skip to content

How to change hover row color for ui.table? #4387

Closed Answered by falkoschindler
tz301 asked this question in Q&A
Discussion options

You must be logged in to vote

Sure, you can address individual elements with custom classes:

ui.add_css('''
    .my-table tbody tr:hover {
        background-color: #0088ff11 !important;
    }
''')
ui.table(rows=[{'name': 'Alice'}, {'name': 'Bob'}, {'name': 'Carol'}]).classes('my-table')

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@tz301
Comment options

@falkoschindler
Comment options

Answer selected by tz301
@tz301
Comment options

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