UiTable HTML not working
조회 수: 3 (최근 30일)
이전 댓글 표시
Hello everyone.
I'm tring to change the background of the cells of my UItable.
I have this code to do so:
![Capturar.PNG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/208801/Capturar.png)
And the result is this:
![c2.PNG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/208802/c2.png)
But if I do this:
uitable('data',data)
it pops a new window with this table:
![Capturar.PNG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/208803/Capturar.png)
That is what I want, but I want in the windows form.
Does anybody know how to fix my problem?
Thanks.
댓글 수: 0
채택된 답변
Søren Furbo
2020년 4월 23일
Coloring cells in uitables made with app designer works completely different than it does for other UItables. HTML in general does not work for uitables made with app designer.
It is possible to color cells in uitables made in app designer in 2019b and forward, but not in 2019a: https://se.mathworks.com/help/matlab/ref/matlab.ui.control.tableappd.addstyle.html
For 2019a, you can color entire cell rows, but not individual cells.
댓글 수: 0
추가 답변 (1개)
Walter Roberson
2019년 3월 17일
uitable for app designer is not based upon the same underlying technology, and does not support html for coloring.
I do not know if it is possible to color cell by cell with app designer.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!