Checkboxes in row of UITable

22 次查看(过去 30 天)
How do I set up one row of checkboxes just below the variable names in my UITable?

采纳的回答

MathWorks Support Team
This can be done by using cell array data in the UITable and assigning the top row of the cell array to logical values.
The following code is an example that shows how this can be done:
>> t = uitable(uifigure)
>> d = {true, false, true};
>> d(2:50,1:3) = {rand(1,1)};
>> t.Data = d
>> t.ColumnEditable = true;
>> t.ColumnName = ["a" "b" "c"];

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Develop Apps Using App Designer 的更多信息

标签

尚未输入任何标签。

产品


版本

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by