I'm trying to add html text to a cell from a UITable created in the Appdesigner, however it doesnt seem to be working. The Appdesigner just copies the HTML code as text.
if true
TableMatrix(app.letteri(j)-64,app.columni(j))={strcat('<html><table border=0 width=400 bgcolor=#FF0000<TD>',num2str(1),'</TD></TR> </table></html>')};
end
Does anyone have any idea why it is not working?
Thanks in advance :)

 채택된 답변

Elizabeth Reese
Elizabeth Reese 2017년 12월 7일

1 개 추천

This functionality is not supported by uifigure and uitable in App Designer. Customization of individual cells of a uitable in App Designer is being considered for a future release of MATLAB.

댓글 수: 8

Eduardo Gaona Peña
Eduardo Gaona Peña 2017년 12월 8일
awww good to know. Can't wait for the new release :D
Himanshu Verma
Himanshu Verma 2020년 5월 18일
Using Matlab 2019a and I'm still unable to use this feature in uitable. If it's not working, then how can we change the text color of a row of uitable? I want each row to have different text color depending on the value of a decision variable.
Elizabeth Reese
Elizabeth Reese 2020년 5월 18일
The MATLAB R2020a release does have customizations using the "StyleConfirgurations" property of the "uitable". Please refer to:
Xymbu
Xymbu 2023년 1월 24일
It has been 4 years since this comment and app designer still can't read HTML
Xymbu
Xymbu 2023년 1월 25일
This post specifically says app designer. This does not work for app designer. people reading this should know that.
Walter Roberson
Walter Roberson 2023년 1월 25일
편집: Walter Roberson 2023년 1월 25일
Style Configurations can only be added to uitable that are inside uifigure, which is the kind of figure used by app designer. Follow the StyleConfigurations link I posted and look a few lines higher and notice that the section heading says the property is for uifigure only.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by