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.

Specification

PropertyTypeDescription

Accordion Config *

String

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

Show Border

Boolean

Check this option if you wish to add a border.

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

<design:component label="GM - Dynamic Accordion">
    <design:attribute name="jsonSections" label="Accordion Config." description="Accordion JSON configuration"/>
    <design:attribute name="showBorder" label="Show border?" />    
</design:component>

Last updated