Loading
Feature Disruption - Service Cloud VoiceRead More
Feature degradation | Gmail Email delivery failureRead More
Visual Studio Code Based Modeler for Consumer Goods Cloud
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          API for Sales Folder

          API for Sales Folder

          Sales Folder uses getNumberOfColumns() API method to calculate the number of columns depending on the form factor and the orientation in the same way as the Cockpits. Cockpits are card collections that serve as a landing page for certain business processes or modules. They provide users with a compact view of the most relevant information and can be used as entry points for more details.

          Required Editions

          Available in Lightning Experience in Professional, Unlimited, and Enterprise Editions that have Consumer Goods Cloud enabled.

          The API method uses the CardHelper class to calculate the number of columns to be rendered. The CardHelper class can only be used from the UI Plugins contract ensuring a consistent look and feel of the Consumer Goods Cloud offline mobile app.

          getNumberOfColumns: function(width)

          Gets the number of columns to be used for rendering.

          Parameters

          Width: This parameter is an optional. If the parameter is given, it calculates the number of columns based on the defined width.

          Returns

          Returns the number of columns to be used for rendering.

           
          Loading
          Salesforce Help | Article