Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »


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:

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.

  • No labels