필터 지우기
필터 지우기

How come my checkboxes in my UITable are not being editable?

조회 수: 5 (최근 30일)
Sean
Sean 2023년 8월 28일
I've been trying to be able to edit information within a app.UITable. Shown below, I was able to make the UITable editable with drop downs.
app.UITable.ColumnFormat = {'numeric' {'Yes' 'No'} 'logical' 'logical'}
I was able to add a Callback where it's able to add a new row, shown below:
function CreateButtonPushed(app, event)
index = size(app.UITable.Data,1);
app.UITable.Data(index + 1:) = {'' '' '0' '0'};
end
In addition, I added the callback to the button as shown below:
app.CreateButton.ButtonPushFcn = createCallbackFcn(app, @CreateButtonPushed, true);
I'm having a problem where I'm not able to edit the created rows, I'm able to edit the numeric and dropdown, but the logical aspects would reset to false, empty, no checkmark.
(Nevermind, I found my problem, I wanted to at least post this so just in case if anyone needs it.)
app.UITable.Data(index + 1:) = {'' '' false false}; % Solution to my problem

답변 (0개)

카테고리

Help CenterFile Exchange에서 Programming에 대해 자세히 알아보기

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by