updateListPreferences

Use this wire adapter to update the preferences for a list view.

See Update List View Preferences.

Parameter NameTypeDescriptionRequired?
objectApiNameStringThe API name of a supported object.Yes
listViewApiNameStringThe API name of a list view, such as AllAccounts.Yes
columnWidthsObjectThe column-width preferences for the list. Pass in a key-value pair with the name of the column and an integer.
columnWrapObjectThe column-wrapping preferences for the list. Pass in a key-value pair with the name of the column and a boolean.
listReferenceObjectThe reference information for the list.
orderedByString[]The ordering preference for the list. Type List Order Input[].

This code example updates a list view’s preferences and displays the updated values.

See Also