Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

GM - Dynamic Accordion

(gmpkg:DataGridAccordionComponent)

Documentation

GM - Dynamic Accordion component is used to display an accordion in a Lightning App Page. It could be useful to build a workspace like an SRD Workspace.

Use case: Display contacts and accounts list views in separate accordion sections on the same page. See Dynamic Accordion for a configuration sample.

Specification

Property
Type
Description

Accordion Config.

String

Accordion JSON configuration describing the accordion and the content for each section.

Show border?

Boolean

Check this option if you wish to add a border. The default value is false.

Example of Dynamic Accordion configuration

[
   {
      "label": "Contacts",
      "components": [
         {
            "component": "gmpkg:ListViewDataGridComponent",
            "attributes": {
               "relatedObjectName": "Contact",
               "listViewName": "AllContacts",
               "canCreate": false,
               "canUpdate": true,
               "canDelete": true,
               "canFilter": true,
               "recordDetail": true,
               "inline": true,
               "showBorder": true,
               "showColumnBorder": true
            }
         }
      ]
   },
   {
      "label": "Accounts",
      "components": [
         {
            "component": "gmpkg:ListViewDataGridComponent",
            "attributes": {
               "relatedObjectName": "Account",
               "listViewName": "AllAccounts",
               "canCreate": false,
               "canUpdate": true,
               "canDelete": true,
               "canFilter": true,
               "showBorder": true,
               "inline": true
            }
         }
      ]
   }
]

API Reference

Last updated

Was this helpful?