Open mattrunyon opened 1 month ago
I think these should be separate tickets. The on_row_press
and on_row_double_press
docstrings should be updated at least to be clear you won't get data for all the columns, but will get info about the columns. You currently get the names of all columns, but only data for those we've fetched.
Description
Our spec and docstring says that
on_row_press
andon_row_double_press
receive "the row data provided in a dictionary where the column names are the keys". This is misleading for larger tables as you only get the visible row data (+/- a window off screen) due to how we viewport data.We should probably just adjust the docstring and design docs to make it clear you will not receive the full row data. Unless we want to add a separate table viewport that subscribes to all the columns for just the selected rows. Could be problematic if there are thousands of columns.
Steps to reproduce
@ui.component def my_table(): t = empty_table(50).update([ f"A{i} = ii" for i in range(100) ])
t = my_table()