Sometimes you will want your application user to be able to hide or show part of the application UI. This allows your user to customize the UI to his or her preferences.
Here are some of the techniques illustrated in this sample:
- This sample demonstrates how to use a checkbox to control the visibility of another element of the UI.
- The sample also uses a visibility setter to target the UI element that you want to hide or show.
- An HTML Event Action listens for the onchange event of the checkbox and makes the change in visibility whenever the checkbox is clicked.
Notes on running the sample and prerequisites
Import the attached zip file into your project using the Import WebSphere Portlet Factory Archive command.