The Lightning Data Service components that we explored in the previous section can be combined with custom components to achieve various functionalities without writing excessive code. In the next section, we will cover some base components. With Lightning Data Service and base components, we can rapidly build components, to achieve various functionalities.
In this section, we will build a path component that changes based on the Lead status. Note that this component may be available out of the box in Salesforce, but our aim is to demonstrate how to leverage Lightning Data Service in custom components:
Let's use the data service force:recordData on the lead layout, in order to build this. The Lightning base components library provides a component to make this easier; the code snippet for it is as follows:
<aura:component...