function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
klabklab 

Is the force:recordEdit attribute documenation wrong?

Hi all-

When looking at the documentation for force:recordEdit, https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/aura_compref_force_recordEdit.htm, it appears that there is something missing or there is a typo under the 'recordId' attribute.

recordId -- String -- The Id of the record to load, optional if record attribute is specified.

Can someone comment on what 'record' attribute is referring to? Is there supposed to another attribute listed that is not? Based on the description, it seems that the component can be initialized with an sObject by passing in either a record Id or an sObject record, but the 'record' attribute doens't appear to exist, so how is 'recordId' optional?  I would like to pass in a record instead of a record Id if possible.

Thank you!