updateListPreferences
Use this wire adapter to update the preferences for a list view.
See Update List View Preferences.
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 . | |
columnWidths | Object | The column-width preferences for the list. Pass in a key-value pair with the name of the column and an integer. | |
columnWrap | Object | The column-wrapping preferences for the list. Pass in a key-value pair with the name of the column and a boolean. | |
listReference | Object | The reference information for the list. | |
orderedBy | String[] | The ordering preference for the list. Type List Order Input[]. |
data
—List Infoerror
–FetchResponse
This code example updates a list view’s preferences and displays the updated values.
See Also
- Understand the Wire Service
- Handle Errors in Lightning Data Service
- Salesforce Objects Supported by lightning/ui*Api Modules