Clear button on drop down list
古いコメントを表示
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.

Thanks in advance.
5 件のコメント
Rik
2023 年 1 月 15 日
Your image looks more like an edit box. So you may have to adjust your search terms. I don't recall having seen this, so it may not be possible.
Juan Ruiz Osorio
2023 年 1 月 15 日
Rik
2023 年 1 月 15 日
What would be the point of such a clear button in a dropdown? Why not have an empty entry a user would be able to select?
The only situation I see where such a button would be useful, would be if you were using an edit box instead of a dropdown.
Juan Ruiz Osorio
2023 年 1 月 15 日
編集済み: Juan Ruiz Osorio
2023 年 1 月 15 日
Adam Danz
2023 年 1 月 15 日
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).
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Environment and Settings についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

