How can I have 'dropdown' in an individual cell of a table in App Designer and not to the whole columns ?
14 次查看(过去 30 天)
显示 更早的评论
Hello,
With reference to this previous resolved question: https://www.mathworks.com/matlabcentral/answers/452199-how-can-i-have-dropdown-in-every-cell-of-a-table-in-app-designer
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;
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!