![]() The developer console provides two interfaces when you create a Lightning component and select the Available for Record Pages checkbox (namely, the force:hasRecordId and flexipage:availableForRecordHome interfaces).Replace the contents of the component with this code:.Name the component IndicatorBadges, select Lightning Record Page, and select Submit.In the Developer Console, select File > New > Lightning Component.Click the gear icon ( ), then select Developer Console.In this step, we create an object-aware Lightning component, make it available for use in Lightning App Builder, and use Apex to give the component a dynamic, object-aware label. In fact, we need to use a fair bit of Apex to make our Indicator Badge records available for use in our Lightning components, along with other information. Though we use Lightning components to display our indicator badges (and in a later step, we even use Lightning Data Service to get record-level data without Apex), that doesn’t mean we don’t have any need for Apex. (This clip starts at the 8:54 minute mark, in case you want to rewind and watch the beginning of the step again.) Introduction ![]() Want to follow along with an expert as you work through this step? Take a look at this video, part of the Trail Together series. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |