createListInfo
Use this wire adapter to create a list view associated with a supported object.
See Create a List View for an Object.
Parameter Name | Type | Description | Required? |
---|---|---|---|
objectApiName | String | The API name of a supported object. | |
listViewApiName | String | The API name of a list view, such as AllAccounts . | |
displayColumns | String[] | Display columns (field API names) for the list. | |
filterLogicString | String | The filter logic string, such as (1 OR 2) and 3 . Indexes start with 1. | |
filteredByInfo | Object | Filtering information for the list. Type List Filter By Info Input. | |
label | String | The list’s display label, such as All Accounts. | |
listShares | String[] | Objects that the list is shared with, if visibility is Shared . | |
scope | Object | Scope information for the list. See List Scope Input. | |
visibility | String | The list’s level of visibility. Valid values are: Private , Public , Shared . |
data
—List Infoerror
–FetchResponse
This code example creates a new list view on the button click.
See Also
- Understand the Wire Service
- Handle Errors in Lightning Data Service
- Salesforce Objects Supported by lightning/ui*Api Modules