Checkboxes in row of UITable
22 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
MathWorks Support Team
am 9 Okt. 2018
Beantwortet: MathWorks Support Team
am 9 Okt. 2018
How do I set up one row of checkboxes just below the variable names in my UITable?
Akzeptierte Antwort
MathWorks Support Team
am 9 Okt. 2018
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 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Develop Apps Using App Designer finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!