If you’re looking for best practices and new ways to develop widgets in Mendix, view this webcast for expert advice and a real-world view of the new tools available for widget development.
We will show you how to build a widget using the brackets editor with a plugin and will review the Yeoman generator and the Grunt task runner. Whether you are building new widgets or want to speed development and debugging in your existing widgets, this webinar is for you. You’ll learn how to:
Is there a plan to make this into a GUI instead of command line?
Yeoman in itself is strictly a command-line client and, we intend to use it like that. From what I have seen, there are Yeoman plugins for editors, like Atom and Sublime Text, that will let you use Yeoman within your editor. We’ll investigate that. This generator is still under development, so there might be changes in the future. The basics stay the same.
Would this work as a yeoman GUI for MX? https://atom.io/packages/atom-yeoman
Looks promising. We’ll see if this works as advertised. If so, we might recommend it for those that do not want to work with the command-line. Thank you for this suggestion!
If you want to adapt an existing widget (that has no node.js and json) with Grunt, for example one you download from the App Store, how do you start and install Grunt?
This is shown in the demo. If you want to adapt an existing widget, perform the following steps:
Suppose you want to develop a new widget, on what version of Mendix can you best start with if you would also want to support current MX customer base?
It really depends on what version your customer is working. From what we have seen, it would currently be best to start at version 5.18:
Is there a webinar to show how to build a widget from scratch?
We have a few resources about building a widget:
Furthermore, if you want to learn how widgets work, download the source of one of our widgets on GitHub and try to find out how it works. You can find it at https://github.com/mendix. Questions can be asked on the forum. Experiment with it (Using Grunt, it’s quite easy to adapt a widget and see what happens).