Is it possible that the column format of a UITable depends also on the row ?

조회 수: 9 (최근 30일)
Anas
Anas 2025년 3월 25일
댓글: Anas 2025년 3월 27일
The UITable.ColumnFormat field set the format for each column.
I would like if possible to make this format depend on a cell instead of a column.
Is there a way of setting a format to a specific cell within my uitable ?
Thank you,
Arthur
  댓글 수: 1
Anas
Anas 2025년 3월 25일
이동: Walter Roberson 2025년 3월 25일
More precisely, I am trying to implement listboxes inside the cells, but the available values of these listboxes depends on the value of uitable.ColumnFormat field. I would like these values to be different from one row to another.

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

답변 (1개)

VBBV
VBBV 2025년 3월 25일
편집: VBBV 2025년 3월 25일
@Anas Is there a way of setting a format to a specific cell within my uitable ?
yes, you can format individual cells of uitable using uistyle and addStyle .
See the HTML interpreter and OL (ordered list) option for setting the uitable cell properties using uistyle and addStyle for more information
  댓글 수: 3
Anas
Anas 2025년 3월 27일
Thank you, I will try it.
drop down menu is the component I wanted to mention, not listbox, sorry for the mistake.
Anas
Anas 2025년 3월 27일
The problem raised by your solution is that this ordered list is not interactive. I found a convenient way to do it :
when selecting a dropdown menu inside a table, a callback is triggered and updates the items of the dropdown menu with the ColumnFormat field.

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

카테고리

Help CenterFile Exchange에서 Develop uifigure-Based Apps에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by