How to change UITable Row/Column header font size?
조회 수: 88 (최근 30일)
이전 댓글 표시
I built an app in 2019b that used UITables with the RowName property set. Everything worked fine. When upgrading the 2020a the font size of the RowName lables was changed to something much larger and now my tables don't fit well in the interface anymore. See screenshots of 2019b and 2020a below with identical code. I've cropped the screenshot to hide sensitive information, but there are other row names below that are dictating the width of the header column so I can't just resize the column in this instance.
I cannont find any way to change the font size of the RowName values, only the other cells. It seems that it used to be possible to use HTML to change the formatting as seen here and here. But either that functionality no longer exists or I'm missing a critical step to get it to show anything but the raw HTML code.
Does anybody have a way of changing the formatting in UITable row/column headers??
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/313739/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/313742/image.jpeg)
댓글 수: 0
답변 (2개)
Jeff Foster
2021년 4월 14일
Hi,
I think your question is similar to
The team is aware of it and considering this request for a future release
Thanks
Jeff
댓글 수: 2
Tobias Seidler
2021년 5월 24일
For a software this expensive the lack (and removing!) of essential features, especially in the AppDesigner, is getting more and more ridiculous.
Nikolaus Koopmann
2022년 8월 18일
seriously! Mathworks is actively helping in making Matlab obsolete technology.
Eric Delgado
2023년 6월 19일
편집: Eric Delgado
2023년 6월 19일
I am not sure if it is still an issue to you guys, but I wrote ccTools, a lib that turns possible the customization of the header of the uitable (and a lot of more things, like a new filterable table class). I hope it helps! :)
f = uifigure;
g = uigridlayout(f, 'RowHeight', {'1x'}, 'ColumnWidth', {'1x'});
t = uitable(g, 'Data', table("#"+string((1:100)'), (1:100)', (1:100)'+.1, (1:100)'+.001, (1:100)'+.00001, randn(100,1)));
drawnow
ccTools.compCustomization(t, 'backgroundHeaderColor', '#52555c', ...
'borderRadius', '10px', ...
'fontFamily', 'Times New Roman', ...
'color', 'white');
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1414509/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1414514/image.png)
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Particle & Nuclear Physics에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!