featuring Jelte Lagendijk  

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:

  • Scaffold a widget in a minute
  • Speed up development using Grunt
  • Update existing widgets

Kickstart your Widget Development

View past Expert Webinars on-demand at developers.mendix.com.

Download the presentation slides >

Jelte Lagendijk

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:

  • Create a folder that will serve as the root of your widget, for example “AdaptedWidget”
  • Inside this folder, create a “src” directory.
  • Take the downloaded widget-file with an .mpk extension and change this extension to .zip.
  • Open the zip file and extract the files to the src directory.
  • Now run ‘yo mendix’ in your root folder (in this example in “AdaptedWidget”).

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:

  • Deprecated methods in Mendix 5 should not be used if you want your widget to work with Mendix 6.
  • We introduced an AMD structure for our widgets. This AMD structure seems to work the best from 5.18 and upwards.
  • Many widgets that are built by Mendix have a test project that is 5.18. We intend to test it against that stable version.

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).

Mendix does not share, sell, rent, or trade personally identifiable information with third parties for promotional purposes. Privacy Policy

About Mendix

Mendix Can Help Your Business:

Mendix helps enterprises drive digital innovation. Our platform empowers customers to bring new products to market, digitize customer engagement, and automate unique business processes.

Trusted By Top Brands

Brand Logos