Replies: 1 comment 4 replies
-
Or would it be possible to just # get table from DOM
table = self.query_one(DataTable)
# reset selection
table.CellSelected.cell_key = table.coordinate_to_cell_key(
textual.coordinate.Coordinate(
row=1,
column=0,
)
) |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
whenever I click on a cell within my data table, there is created a yellow background and a black foreground for that cell. As soon as I click somewhere else, this selection mark disappears at its old location and appears at the new cell location clicked.
Now, I want to neutralize the cell selection mark without having to click on another cell (and thus, without creating another mark):
Is there a way to programmatically reset a cell's selection mark after it has been set via mouse click?
Beta Was this translation helpful? Give feedback.
All reactions