Need interface suggestions on how best to let the user reorder a list of objects.
2 views (last 30 days)
I have created an app in app desginer where i have a list of objects as following
They are created form a table that holds all the values and graphic, but also a Order number and ID
I have touble finding a good solution to how I let the user change the order (moving one line of objects above or below a another)
Any suggestions are welcome.
Jasmine Powell on 13 Aug 2021
Hi Johan, you mentioned looking into using a context menu to provide options to reorder the rows in your app. This could work using the CurrentObject property of the UI figure, which stores the most recently clicked object in the figure.
For example, you can add this code to the MenuSelectedFcn callback of the relevant menu item to store the component that was right-clicked to bring up the context menu, and then use that info to rearrange the order:
selected = app.UIFigure.CurrentObject;