├── LICENSE
├── README.md
└── src
├── aura
├── cardOutputSection
│ ├── cardOutputSection.cmp
│ ├── cardOutputSection.cmp-meta.xml
│ └── cardOutputSectionController.js
├── fieldSetOutputSection
│ ├── fieldSetOutputSection.cmp
│ ├── fieldSetOutputSection.cmp-meta.xml
│ ├── fieldSetOutputSection.design
│ ├── fieldSetOutputSection.svg
│ ├── fieldSetOutputSectionController.js
│ └── fieldSetOutputSectionHelper.js
├── layoutOutputSection
│ ├── layoutOutputSection.cmp
│ ├── layoutOutputSection.cmp-meta.xml
│ └── layoutOutputSectionController.js
├── outputDataRow
│ ├── outputDataRow.cmp
│ ├── outputDataRow.cmp-meta.xml
│ └── outputDataRowController.js
├── outputDataTable
│ ├── outputDataTable.cmp
│ ├── outputDataTable.cmp-meta.xml
│ ├── outputDataTableController.js
│ └── outputDataTableHelper.js
├── outputField
│ ├── outputField.cmp
│ ├── outputField.cmp-meta.xml
│ ├── outputFieldController.js
│ └── outputFieldHelper.js
├── referenceField
│ ├── referenceField.cmp
│ ├── referenceField.cmp-meta.xml
│ └── referenceFieldController.js
└── relatedRecordsTable
│ ├── relatedRecordsTable.cmp
│ ├── relatedRecordsTable.cmp-meta.xml
│ ├── relatedRecordsTable.design
│ ├── relatedRecordsTable.svg
│ ├── relatedRecordsTableController.js
│ └── relatedRecordsTableHelper.js
├── classes
├── DataTable.cls
├── DataTable.cls-meta.xml
├── Field.cls
├── Field.cls-meta.xml
├── FieldSetSectionController.cls
├── FieldSetSectionController.cls-meta.xml
├── FieldSetSectionControllerTest.cls
├── FieldSetSectionControllerTest.cls-meta.xml
├── RelatedRecordsTableController.cls
├── RelatedRecordsTableController.cls-meta.xml
├── RelatedRecordsTableControllerTest.cls
├── RelatedRecordsTableControllerTest.cls-meta.xml
├── Row.cls
└── Row.cls-meta.xml
└── package.xml
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2016 Financial Spectra
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # 1. Field Set Output Section
2 | This component can be used on lightning record page and displays the fields from a field set of the object. You need to set the Field Set Name (API Name - case sensitive) when adding the component to the page and set the other parameters to style the display.
3 |
4 | ## How to use Field Set Output Section
5 | Follow the under mentioned steps to use the Field Set Output Section component on your lightning record page
6 | * Deploy the source code of this repository to your Force.com project or install the latest managed package (Recommended).
7 | * After successful deployment/installation, go to the lightning record page where you want to add the field set section.
8 | * On the left side components panel of Lightning App Builder, you will see Field Set Output Section component.
9 | * Drag the component to the area on the record page where you want to display the output section.
10 | * In the right side panel of the Lightning App Builder, set the properties of the component.
11 | * Set the Field Set Name (API Name of the field set with namespace-prefix).
12 | * Set the other optional properties like Section Name, Section Style, Columns per Row, Icon and Collapsible as per your requirement.
13 |
14 |
15 | # 2. Related Records Table
16 | This component can be used on lightning record page and displays the list of records from a related object. A view-only table is created that is useful to display read only information to users. The option to configure the number of records to be displayed and show more records makes it more user-friendly.
17 |
18 | ## How to use Related Record Table
19 | Follow the under mentioned steps to use the Related Record Table component on your lightning record page
20 | * Deploy the source code of this repository to your Force.com project or install the latest managed package (Recommended).
21 | * After successful deployment/installation, go to the lightning record page where you want to add the related record table.
22 | * On the left side components panel of Lightning App Builder, you will see Related Record Table component.
23 | * Drag the component to the area on the record page where you want to display the table of related records.
24 | * In the right side panel of the Lightning App Builder, set the properties of the component.
25 | * Set the Related Object Name (API Name of the Object with namespace-prefix).
26 | * Set the Relationship Name (API Name of the Relationship - custom relationship ends with '__r').
27 | * Set the comma-separated list of fields that you want to display in the table.
28 | * Set the other optional properties like Sort By, Max. Number of Rows, Title and Icon as per your requirement.
29 |
30 |
31 | If this component is useful for you, please leave a comment. If you have any suggestions or find any issue, then also please log an issue.
32 |
33 | Cheers!
34 |
35 |
36 | This component has been released via AppExchange
37 |
38 | https://appexchange.salesforce.com/listingDetail?listingId=a0N3A00000ErEqoUAF
39 |
40 | The AppExchange release also includes another component - Related Record Table.
41 |
--------------------------------------------------------------------------------
/src/aura/cardOutputSection/cardOutputSection.cmp:
--------------------------------------------------------------------------------
1 |
10 |
11 |
13 |
15 |
17 |
19 |
21 |
22 |
23 |
24 | {!v.sectionTitle}
25 |
26 |
27 |
28 |
29 | {!$Label.c.Hide_Records_Label}
30 | {!$Label.c.Show_Records_Label}
31 |
32 |
33 |
34 |
35 |