How to change the width of rowname label in AppDesigner UITable
4 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Hi,
I am working on an AppDesigner app containing an UITable. The UITable is updated with new data and new rownames a couple of times.
If I set the rowlabels via app.UITable.RowName = {'Long row name 1', 'Long row name 2', 'Long row name 1'} the width of the row name label resizes so that it fits the length of the row name.
When I set new rownames that are much shorter, the width of the rowname label still remains the same size, much too wide.
How can I reset the row name label width so that it also resizes to shorter rownames?
I already searched the forum, but could not find a solution. One could use findjobj() to control the width of the rowname label, but that does not work for Appdesiner figures, because they are not Java based.
Thanks in advance!
0 Commenti
Risposte (1)
Rahul
il 16 Apr 2025
There is no known workaround for adjusting the width of the rowname label. It adjusts its size based on the text along with some padding for shorter texts. I agree that using 'findjobj' could not be possible since App Designer components are not Java based.
A possible workaround could be to add the rowname labels in a separate column instead and adjust its width using 'ColumnWidth' property of the 'uitable'. Tis is also mentioned in this MATLAB Answer:
The following MathWorks documentations can be referred to know more:
Thanks.
0 Commenti
Vedere anche
Categorie
Scopri di più su Develop Apps Using App Designer in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!