Modifying property display order
14 次查看(过去 30 天)
显示 更早的评论
I know I can use matlab.mixin.CustomDisplay inheritance (https://mathworks.com/help/matlab/ref/matlab.mixin.customdisplay-class.html) in connection with a getPropertyGroups method (https://mathworks.com/help/matlab/matlab_oop/use-cases.html) to modify the order in which object properties are displayed in the workspace.
In my case, I have objects with many properties. I want some of them (e. g. ID) to be displayed "on top". The rest I don't care about (though it would be nice to sort them in alphabetical order). I have two questions:
- Is there a way to achieve that feat without having to manually create a lengthy sorted proplist with all property names?
- Is there a way to display only the first n properties and show the rest only when clicking on a "show all" button (like e. g. with the built in figure class)?
3 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Software Development Tools 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!