ProgressBar inside TableList possible?


#1

Is it possible to have a ProgressBar inside an column in a TableList? I am looking at the WidgetDemo and trying to do something similar to the 'EditableTextCustomComponent' / 'RatingColumnCustomComponent' but with a ProgressBar. Is this possible? How would I do this?

 

Thanks!


#2

Yes, you can have any kind of component as a custom component inside a TableListBox! You are looking at the right place already. You add a custom component (a ProgressBar in your case) and then overload TableListBoxModel::refreshComponentForCell to create and update that progress bar. You may need to also add some custom code to TableListBoxModel::getColumnAutoSizeWidth for the column that holds the progress bars.