Open ghost opened 4 years ago
I have the same problem with derived_virtual_selected_row_ids
. I have selected some rows, but this property always returns [None].
- dash=1.18.1=pyhd8ed1ab_0
- dash-bootstrap-components=0.11.1=pyhd3deb0d_0
- dash-core-components=1.14.1=pyhd8ed1ab_0
- dash-html-components=1.1.1=pyh9f0ad1d_0
- dash-renderer=1.8.3=pyhd8ed1ab_0
- dash-table=4.11.1=pyhd8ed1ab_0
- dash-bio==0.5.0
- dash-extensions==0.0.42
- dash-tabulator==0.4.1
I am using the 'derived_virtual_row_ids' property of DataTable to update the color of markers in my plot based on the filtering of a datable. I only want the color change after filtering if the number of remaining rows is smaller than in the unfiltered df, with 'size' being the number of rows of the unfiltered df. Hence I use the following code:
if len(row_ids) != size: for i in row_ids: colors[i] = '#7FDBFF'
This works fine but Dash is giving me following error:
TypeError: object of type 'NoneType' has no len()
Edit: I should also mention, that the App itself works as expected.