A library of lightweight Salesforce Lightning components that streamline developing by automatically applying sobject-level security, field-level security, field types and more.
-
Provides a simple way to display an SObject's field as an input (editable) that automatically determines sobject-level security, field-level security, the field type, field label, etc. Attributes can be overridden to allow control over the field when needed
<c:inputField sobjectName="Account" record="{!v.myAccount}" fieldName="Type" />
-
Provides a simple way to display an SObject's field as an output (read-only) that automatically determines sobject-level security, field-level security, the field type, field label, etc. Attributes can be overridden to allow control over the field when needed
<c:inputField sobjectName="Account" record="{!v.myAccount}" fieldName="Type" />
-
Displays the localized version of the provided SObject's label
<c:sobjectLabel sobjectName="Account" />
-
Feature: Show the SObject's plural label
<c:sobjectLabel sobjectName="Account" variant="labelPlural" />
-
Displays the localized version of the provided field's label
<c:fieldLabel sobjectName="Account" fieldName="Type" />
-
Feature: Show the field's inline help text
<c:fieldLabel sobjectName="Account" fieldName="Type" showHelpText="true" />
- Generates a modal window and displays your contents inside
<c:modal title="My Modal" isOpen="{!v.showModal}"> <aura:set attribute="body"> <p>This paragraph will be shown inside the modal</p> </aura:set> </c:modal>
-
Displays the specified property of any javascript object - this is helpful since Lightning does not allow you to dynamically get a property value by name (like 'myObject[someProperty]')
<c:objectPropertyValue object="{!v.my.complex.nested.object}" propertyName="someProperty" />
Contains methods for describing your orgs metadata and returning the info as aura-friendly objects that can be consumed by Lightning Components
- getSObjectMetadata(String sobjectName) - returns an instance of LightningMetadataController.SObjectMetadata
- getFieldMetadata(String sobjectName, String fieldName) - returns an instance of LightningMetadataController.FieldMetadata