I've just completed a few Lightning Component Trailhead modules and the last one discussed the Lightning Data Service
which introduces <force:recordData ... />
. For some examples, they use attributes such as fields, layoutType, targetFields, targetRecord, etc. After reviewing the Lightning Components documentation, I couldn't find a section on force:recordData
.
I am hoping for explanations on the following attributes:
- fields
- layoutType
- mode
- recordId
- recordUpdated
- targetRecord
- targetFields
- targetError
On one module Lightning Data Service it mentions some of these are optional and can replace each other, but again the documentation is not straight forward on which ones replace one another, and their specific purpose.
Can anyone help clarify this confusion?
force:recordData
. I assume, this is what you are looking for.