Creating visual effects with JavaScript libraries
JavaScript libraries can be used to make your web page catchy. You can use JavaScript libraries to pop up or disappear items. But JavaScript libraries can also be used when you want to implement the drag-and-drop functionality.
There are several JavaScript libraries. The most well-known JavaScript library is jQuery. In Apex 4.0, jQuery is built-in and can be directly accessed, so you don't have to download and install it. However, when you want to use a JavaScript library such as scriptaculous, you have to download and install it.
Since jQuery is built-in, we will use it to demonstrate the making of an accordion. We will create an accordion where we put in some information, and by clicking on it, you can see the different sections.
Getting ready
We will use the APP_EVENTS
table, so make sure this table is accessible.
How to do it...
First we create a region template:
Navigate to Shared Components | Templates.
Click on the Create button.
Select Region...