フィルターのクリア

How to add a dropdown component in a single cell of a table in app designer?

37 ビュー (過去 30 日間)
I need to add a dropdown component in a single cell ( instead of whole column) of a table . Is it possible ?

採用された回答

Malay Agarwal
Malay Agarwal 2023 年 7 月 11 日
Hi Alessandro,
Please see the following code snippet to add a dropdown to a particular cell:
% Drop Down Options
options = categorical({'Option 1', 'Option 2'});
% Set the first cell to the first option of the available options
col1 = {options(1); 200};
% Update the table
app.UITable.Data = table(col1);
% Make columns editable so that the default option can be changed
app.UITable.ColumnEditable = true;
This results in the following table:

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeTables についてさらに検索

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by