The Liferay JS Generator generates JavaScript widgets for Liferay DXP. It is just one of Liferay JS Bundle Toolkit’s tools.
Portlets are a Java standard, so you must have a knowledge and understanding of how Java works to write one. This can be quite the hurdle for front-end developers who want to use JavaScript frameworks in their widgets. Thanks to the JS Portlet Extender and liferay-npm-bundler, developers can easily create and develop JavaScript widgets in Liferay DXP using pure JavaScript tooling.
Figure 1: The JS Portlet Extender lets you use pure JavaScript tooling to write widgets.
This section explains how to configure these options for generated JS widgets:
- Installing the Liferay JS Generator and generating a bundle
- Configuring system and instance settings
- Localization
- Setting portlet properties
- Using translation features