While Fonteva supplies you with a base list of Components to use when building your Lightning Events, you can create custom Components.
Building the Interface
Before you create your custom Component, Fonteva requires you to implement two specific interfaces. This interface will supply the base set of attributes you will need to set up your custom Component. Use the code provided below to get started.
LTE:EventInterface - This provides the base set of Components you can use when setting up your Lightning Event. Access must be set to global.
Once this interface is implemented, you will need to provide Fonteva with the Aura method validate. This allows you to make changes to the pageComponent object. Those changes are passed through to your Fonteva app automatically.
Once you've implemented the interface, you must register the Component in Salesforce.
To register the Component in Salesforce from your Org's home screen:
[Click] to access the Setup screen.
[Select] Custom Code from the sidebar on the left side of your window.
A list of items expands. [Select] Custom Metadata Types from that list.
A list displays. Find Lightning Event Component and [click] Manage Records.
The base list of Fonteva provided Components displays. [Click] .
[Enter] the following information:
Lightning Component API Name - The Component name displayed in the code
Label - The Component name displayed in the UI
Lightning Event Component Name - this is the Salesforce designation. This field populates automatically once the Label is entered.
If you release protected metadata records in a managed package, you can restrict access by clicking the Protected Component select box.
[Click] the Is Enabled select box to enable your component.
To complete the configuration, [click] either or to finalize registration.
Enabling Edit Functionality
If you enabled the Edit functionality when building the interface, an additional field displays on the Lightning Event Component Edit screen. The Edit Lightning Component API Name is not required. However, you need to add a value in order to enable editing functionality on your custom Component.