Versions Compared

Key

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

To change the default number of columns that are displayed in the widget, you must use the defaultNumberOfColumns property. The following is a sample code snippet:

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

...


	this.defaultNumberOfColumns = 3;

...


});

...

 
//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 three columns. Users can click the Expand () icon to view the other columns of the record.

Image Modified