The Trailblazer Community in Slack is now in Open Beta—join and connect in real time. [Join us in Slack]
lightning/stateManagerRelatedListsInfoThis state manager gets the metadata for RelatedLists in an object’s default layout.
RelatedLists details depend on a parent object developer (API) name, and optionally a record type ID.
1import { LightningElement } from 'lwc';
2import smRelatedListsInfo from "lightning/stateManagerRelatedListsInfo";
3
4export default class Example extends LightningElement {
5
6 const myRelatedListsInfo = smRelatedListsInfo({
7 parentObjectApiName: string,
8 recordTypeId?: string
9 });
10}setConfig()Provide the entire configuration as an object. This function is equivalent to the factory function when you create the state manager.
setParentObjectApiName()Set the API name of a parent object that you want to get related lists for, like an Account.
setRecordTypeId()Set the ID of the parent record type.
statusThe current status of the state manager. See status for details.
dataWhen status is "loaded", a Related List Summary Collection.
errorWhen status is "error", this property contains details. See error for details.
See Also