Effacer les filtres
Effacer les filtres

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

7 vues (au cours des 30 derniers jours)
Sean
Sean le 28 Août 2023
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

Réponses (0)

Catégories

En savoir plus sur Migrate GUIDE Apps dans Help Center et File Exchange

Produits


Version

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by