Versions Compared

Key

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



To display page numbers as navigation elements for the widget, you must use the 'byNumber' 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 = "byNumber";

...


});

...


//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 number pagination. You can see that instead of the 'More' button, the page numbers are displayed. Users can click on the page number to view the data on those pages. Image Removed

Image Added