FYI I found another little bug that prevented toggling the "table header" off while in table mode.
In the "setDropdown" custom method, line 178.
The existing code:
# Check to see if table mode is selected, and if so, display the table grid
if multiSelectDropdown.tableMode:
table.showGrid = True
# Check if we should display the header based on the multiSelectDropdown's tableModeShowHeader custom property
# If we should show the header, set its height to match the height of the textFilter.
if multiSelectDropdown.tableModeShowHeader:
table.tableHeader.setPreferredSize(Dimension(table.tableHeader.preferredSize.width, textFilter.height))
# If table mode is not selected, hide the table grid and the table header
else:
table.showGrid = False
table.tableHeader.setPreferredSize(Dimension(table.tableHeader.preferredSize.width, 0))
Needs the following else statement added as below:
# Check to see if table mode is selected, and if so, display the table grid
if multiSelectDropdown.tableMode:
table.showGrid = True
# Check if we should display the header based on the multiSelectDropdown's tableModeShowHeader custom property
# If we should show the header, set its height to match the height of the textFilter.
if multiSelectDropdown.tableModeShowHeader:
table.tableHeader.setPreferredSize(Dimension(table.tableHeader.preferredSize.width, textFilter.height))
else:
# 23/04/2025 - rlee - added else statement to ensure 'tableModeShowHeader' is respected in both cases...
table.tableHeader.setPreferredSize(Dimension(table.tableHeader.preferredSize.width, 0))
# If table mode is not selected, hide the table grid and the table header
else:
table.showGrid = False
table.tableHeader.setPreferredSize(Dimension(table.tableHeader.preferredSize.width, 0))
ON ANOTHER NOTE- Filtering all columns?
I'm having a bit of trouble trying to figure out why the filtering is not working for my current use case.
I've got 3 columns in the Data property, INT, STRING, STRING.
I am able to filter based on the first two columns (I believe - maybe its just working on the second TaskUUID column).
I've tested this by starting typing CT- or PT- and it filters accordingly. Also filters purely on numbers ie: 455**
But I can't seem to filter on the final "Description" column, by typing something like "grind" or "chain".
Any ideas why this may be?
I believe this filtering is handled by the custom method "showDropdown", in the function "setInternalData" ?
And it seems to loop through all columns to filter so not sure why it wouldn't work?