Creating custom controls by using third-party JavaScript libraries
Create custom controls to add new features to your application. By using third-party JavaScript libraries, you can render a wide range of versatile components, such as widgets or graphs, with less effort.
- In the header of Dev Studio, click .
- On the New tab, specify the label, context, and ruleset for the control, and then click Create and open.
-
On the HTML tab, define the control:
- Clear the Auto-generated check box.
- Select Show in authoring menus, and then select the menu in which you want to display the new control.
- To define what image the authoring menu displays next to the control, click the Show Image View icon, and then select an image from the Image Catalog.
-
In the HTML source field, enter the HTML code
for the new control.
- You can refer to the UI Gallery for examples of controls that use third-party JavaScript libraries. To access the Gallery, click Extending your Pega UI section. . The example controls are in the
- JSP tags in your code must refer to the third-party library that you use. For more information about JSP tags supported by Pega Platform, see JavaServer Pages tags.
- For more information about configuring actions in custom controls, see Control form - Actions tab.
- On the Parameters tab, define the parameters that pass data between the application and the control.
- Click Save.
- Upload the library file and all related CSS and JS scripts to the application. For more information on adding text files, see Text File rules.
- If your control triggers an unregistered request error message, you need to secure the control. For more information, see the Community article Configuring a custom control by using the rule form.