Search function in drop down menu in AppDesigner?

조회 수: 38 (최근 30일)
Christelle Rodier
Christelle Rodier 2020년 11월 2일
댓글: Adam Danz 2020년 11월 5일
Hi everyone!
I am currently working on a tool where the user selects different signals from a dropdown menu an then the tool takes the signals and processes them.
The problem is that there is about 150 signals in that drop down menu and I am searching for an option not to scroll down all the signals until the desired is found. SOmething like a search function where I can type parts of that signal (eg. signal is ID_065_SIG03_Accel) and I want to type "accel" to reduca the drop down menu that signals containing that part.
Many thanks in advance for your help!
  댓글 수: 4
J. Alex Lee
J. Alex Lee 2020년 11월 3일
Doesn't the dropdown already do some simple completion suggestions (when you set its Editable property to true)?
Another approach to avoid matching could be to calculate the distances (levenshtein, e.g.) between the typed word and filter on that distance in case you make a typo.
Christelle Rodier
Christelle Rodier 2020년 11월 5일
Many thanks for your help!
The solution you provided is a pretty nice second option in case the other solution cannot handle parts of the strings.

댓글을 달려면 로그인하십시오.

답변 (1개)

J. Alex Lee
J. Alex Lee 2020년 11월 3일
Just confirmed, if you set the "Editable" property of a uidropdown to "on", you get some simple filtering of the Items based on what you type into the dropdown.
  댓글 수: 3
J. Alex Lee
J. Alex Lee 2020년 11월 5일
Hmm, not if the existing functionality doesn't already do it. I don't think the intrinsic filtering functionality of the uidropdown is exposed to be able to tweak, but i could be wrong.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Simulink Environment Customization에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by