Checkboxes in row of UITable

조회 수: 21 (최근 30일)
MathWorks Support Team
MathWorks Support Team 2018년 10월 9일
답변: MathWorks Support Team 2018년 10월 9일
How do I set up one row of checkboxes just below the variable names in my UITable?

채택된 답변

MathWorks Support Team
MathWorks Support Team 2018년 10월 9일
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