Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

To enable swipe gesture for page navigation within widgets, you must use the 'bySwipe' keyword for the paginationType property. The following is a sample code snippet:

Code Block
languagejs
CWEH.registerHandler('CT_ACC_SUMMARY_WGT', CWEC.CTAPPBEFOREINITIALIZE, function()
{

...


	this.paginationType = "bySwipe";

...


});

...

 
//Here, CT_ACC_SUMMARY_WGT is the Widget ID and CTAPPBEFOREINITIALIZE is the event ID.


The following screenshot shows a sample widget in the CTModelHouse mobile application with swipe pagination. You can see that instead of the 'More' button, the swipe dots are displayed. Users can just swipe left or right to view the data on different pages. Image Removed

Image Added