필터 지우기
필터 지우기

How can I have 'dropdown' in an individual cell of a table in App Designer and not to the whole columns ?

조회 수: 11 (최근 30일)
Hello,
I would like to add a drop down list to an individual table cell. The solution provided in the link above applies the drop down to the whole column.
Is there any workaround by using the Table?
app.UITable.Data = {'female';'male';'male'}; % have 3 rows of gender information.
app.UITable.ColumnFormat = {{'male', 'female'}}; % have option cell array within ColumnFormat property to indicate the 1st column is using dropdown menus.
app.UITable.ColumnEditable = true;

답변 (1개)

Dinesh
Dinesh 2023년 3월 10일
편집: Dinesh 2023년 3월 10일
Hi Alessandro.
No, it is not possible to format individual cells in a UITable using ColumnFormat. ColumnFormat can only be used to format entire columns.
Please take a look at this link for more information:

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by