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.
Did this article solve your issue?
Let us know so we can improve!
Loading
Salesforce Help | Article
Cookie Consent Manager
General Information
Required Cookies
Functional Cookies
Advertising Cookies
General Information
We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required Cookies
Always Active
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional Cookies
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising Cookies
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.