Widgets Toolbox helps you efficiently develop advanced user interfaces in MATLAB. Widgets combine existing control functionalities together into larger, reusable, common functionality to accelerate development of graphical user interfaces.
The toolbox provides additional UI controls and higher-level components that implement common building blocks needed in MATLAB apps. Components include:
Grid of buttons grouped together
List of checkboxes and labels grouped together
Color selector control
File selection control, consisting of a label, edit field, and browse button
Listbox control combined with a label and a set of buttons for managing the list composition and ordering
Password field with hidden text
Progress bar indicator with time remaining and cancel button
Slider control group with labels and enable/disable checkboxes
Slider control linked to a numeric spinner and edit field
List of tasks with icons indicating status (pass, fail, running, complete, etc.)
Toolbar with advanced layout functionality that can appear like a toolstrip
This version of Widgets Toolbox is intended for NEW development of uifigure or App Designer apps starting from R2020b or newer releases.
If you have an existing MATLAB app using Widgets Toolbox content developed prior to R2020b, you may also need "Widgets Toolbox (Compatibility Support)".
Planning a complex or business-critical app? MathWorks Consulting can advise you on design and architecture: https://www.mathworks.com/services/consulting/proven-solutions/software-development-with-matlab.html
Robyn Jackey (2021). Widgets Toolbox - MATLAB App Building Components (https://github.com/mathworks/widgets-toolbox/releases/tag/2.1.1), GitHub. Retrieved .
@Achilleas - you're right, there's a problem with the callbacks on the List Selector (two pane). I will have a look.
I tried icluding the dual listbox into my app, on R2021a, by drag and dropping in the App Designer, but the callbacks weren't being triggered. Assigning the callbacks inside the startupFcn didn't work either. I ended up implementing what I needed using regular listboxes and buttons, as I was pressed for time.
To clarify, using R2021a, of course.
You can now drag and drop these widgets directly from within App Designer, beginning with R2021a. You can likely also *run* any such apps in R2020b - the release when the ComponentContainer dependency was released - but you'll need R2021a to edit .mlapp files containing widgets. Also note that the property inspector in App Designer might not yet handle every widget property correctly - especially array types like array of strings or booleans. You may need to still set some properties in code such as your app's startupFcn.
David, unfortunately it is a limitation in App Designer right now that you can't use another subclass / superclass. It needs to be written programmatically to take advantage of the wt.apps.BaseSingleSessionApp. Alternatively, you could export your App Designer app to a code file, but then there's no way to import it back into App Designer. The only way to really use it within App designer would be to copy and paste the relevant code into your App Designer file. This is on my radar though and I will push for improvements in a future release.
Robyn, is there a planned path forward for creating apps with Session data in App Designer? I see there is an +app folder included in this Toolbox but the included Single Session App base class is missing a few features the old (pre-uifigure) Toolbox had. I also don't see a way to assign inheritance with App Designer so there doesn't appear to be a way to use the new base class from this Toolbox without creating the entire app programmatically, which means I can't take advantage of App Designer's visual layout tools or compile into a Web App.
There's a file "appDesigner.json" in the package. Does this mean we can load the widgets into the App Designer and pick them out of the Component Library, or is this only going to appear in future versions of Matlab?
Hello everyone! This is the new Widgets Toolbox for uifigure and app designer development with new components based on the new UI Component Development capabilities introduced in MATLAB R2020b:
To include these widgets in your App Designer app, currently you must do so programmatically, for example in your app's startupFcn.
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!