Packaging Your Extension
Packaging Your Extension
After you complete development on your extension, you can package it into an add-on module so others can use it. You can then publish the module to the Mendix Marketplace so other users can download it into their apps.
To package your extension, follow these steps:
- Verify that you have enabled the Extension Development setting in your app's Preferences. Alternatively, start Studio Pro with the
--enable-extension-developmentcommand-line option. - In your app, create a new module and include your development extension.
- Name the module.
- Open the module's settings and on the Export tab, select Add-on module.
- In the Extension name list, select the extension you want to package.
After you create your add-on module with its extension, export it by right-clicking the module in the App Explorer and selecting Export add-on module package.
You can now save the add-on module to a location of your choice.
Importing the Extension Add-on Module
When the add-on module is available to a Studio Pro user, they can add to their app. This is done by right-clicking the app in the App Explorer and selecting Import module package.
When an add-on module containing an extension is imported in the app, Studio Pro displays a warning to the user, asking to trust the extension contained in it. If the user does not choose to trust the extension, the module is still imported but the extension inside it will not be loaded.