Clear button on drop down list
8 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Juan Ruiz Osorio
le 14 Jan 2023
Déplacé(e) : Voss
le 17 Jan 2023
Hi everyone,
I'm looking for a way to activate a "Clear button" for a drop down list in app designer (Similar to the one in the attached pincture" but I can't find it. This probably was asked before but I didn't find a similiar question.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1263460/image.png)
Thanks in advance.
5 commentaires
Adam Danz
le 15 Jan 2023
I'm not entirely sure what the goal is but if you'd like to give your app users the option to easily select an emply item in your listbox, you could include an empty item as Rik mentioned and then add a uibuttone next to the dropdown that merely selects the empty item.
If the goal is to clear the dropdown list entirely, you could use a button as I've described above and set its callback function to clear the list or you could include a "clear all" option within the dropdown list that, when selected, clears the entire list (except for the clear-all option).
Réponse acceptée
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Interactive Control and Callbacks dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!