Defining jQuery Mobile Plug-In Properties

This topic discusses how to set and use jQuery mobile plug-ins.

You can define jQuery mobile plug-in properties for the following mobile application platform page elements:

  • Action sheet.

  • Input.

  • Check box.

  • Container.

  • Flip toggle.

  • Footer.

  • HTML area.

  • Header.

  • List view.

  • Mobile grid.

  • Push button.

  • Radio button.

  • Select box.

  • Select menu.

  • Slider.

  • Table.

  • URL.

For the case where a JavaScript adds new behavior to current jQuery Mobile widgets and/or core functionality, you can add data-* attributes to the type field. For example:

data-xxx=”abc”

For example:

data-rel=”back”

Use the Optional Plug-In section on the properties page for an element to add the attributes.

Image: Optional Plug-In section

This example illustration the Optional Plug-In section that appears properties page for an element.

Optional Plug-In

To use third-party jQuery Mobile plug-ins in a Mobile Application Platform application, perform the following steps:

  1. Add Java Script (if applicable) to the Layout Designer - JavaScript page.

    To access the page select PeopleTools > Mobile Application Platform > Layout Designer and click the JavaScript tab.

  2. Add CSS (if applicable) to the Layout Designer - CSS page.

    To access the page select PeopleTools > Mobile Application Platform > Layout Designer and click the CSS tab.

  3. Add the data attribute to the jQuery Data Elements field in the Optional Plug-In box on the properties page for the element, if applicable.

  4. Use the element type HTML Area to add any specific HTML need to support the plug-in (if applicable).