Interface: FavoriteListsProps
Defined in: components/FavoriteLists.tsx:23
Properties
allowFavoriteListCreate?
optionalallowFavoriteListCreate?:boolean
Defined in: components/FavoriteLists.tsx:49
Displays create new favorite list button (default: true)
className?
optionalclassName?:string
Defined in: components/FavoriteLists.tsx:52
Custom class name
formatDate?
optionalformatDate?: (dateString) =>string
Defined in: components/FavoriteLists.tsx:55
Format date function override. If not provided, dates are formatted as dd/mm/YYYY
Parameters
dateString
string
Returns
string
graphqlClient?
optionalgraphqlClient?:GraphQLClient
Defined in: components/FavoriteLists.tsx:28
The initialized GraphQL Client instance. Resolved from PropellerProvider when omitted.
labels?
optionallabels?:object
Defined in: components/FavoriteLists.tsx:58
Localization labels
cancelButton?
optionalcancelButton?:string
clusters?
optionalclusters?:string
createButton?
optionalcreateButton?:string
createFirstList?
optionalcreateFirstList?:string
createPlaceholder?
optionalcreatePlaceholder?:string
createTitle?
optionalcreateTitle?:string
defaultBadge?
optionaldefaultBadge?:string
deleteButton?
optionaldeleteButton?:string
deleteConfirm?
optionaldeleteConfirm?:string
deleteTitle?
optionaldeleteTitle?:string
deleteTooltip?
optionaldeleteTooltip?:string
deleteWarning?
optionaldeleteWarning?:string
editCancel?
optionaleditCancel?:string
editSave?
optionaleditSave?:string
editTooltip?
optionaleditTooltip?:string
items?
optionalitems?:string
lastModified?
optionallastModified?:string
loading?
optionalloading?:string
makeDefault?
optionalmakeDefault?:string
nameLabel?
optionalnameLabel?:string
noLists?
optionalnoLists?:string
noListsDescription?
optionalnoListsDescription?:string
products?
optionalproducts?:string
saveButton?
optionalsaveButton?:string
setAsDefault?
optionalsetAsDefault?:string
limit?
optionallimit?:number
Defined in: components/FavoriteLists.tsx:34
Limit the number of lists shown (e.g. 3 = last 3 modified). undefined = show all
onCreate?
optionalonCreate?: (favoriteListData) =>void
Defined in: components/FavoriteLists.tsx:87
Action function triggered when creating a new favorite list. If not provided, the default action is executed
Parameters
favoriteListData
isDefault
boolean
name
string
Returns
void
onDelete?
optionalonDelete?: (favoriteListId) =>void
Defined in: components/FavoriteLists.tsx:93
Action function triggered when deleting a favorite list. If not provided, the default action is executed
Parameters
favoriteListId
string
Returns
void
onEdit?
optionalonEdit?: (favoriteListId,favoriteListData) =>void
Defined in: components/FavoriteLists.tsx:90
Action function triggered when editing a favorite list. If not provided, the default action is executed
Parameters
favoriteListId
string
favoriteListData
isDefault
boolean
name
string
Returns
void
onListChanged?
optionalonListChanged?: (change?) =>void
Defined in: components/FavoriteLists.tsx:100
Called after any list mutation succeeds, with what it did.
The argument is optional so existing zero-argument callbacks keep working.
Parameters
change?
FavoriteListChange
Returns
void
onListClick?
optionalonListClick?: (listId) =>void
Defined in: components/FavoriteLists.tsx:31
Callback when a list is clicked (navigate to detail)
Parameters
listId
string | number
Returns
void
showActions?
optionalshowActions?:boolean
Defined in: components/FavoriteLists.tsx:46
Displays edit/delete action buttons on each list (default: true)
showDefaultIndicator?
optionalshowDefaultIndicator?:boolean
Defined in: components/FavoriteLists.tsx:37
Displays the "Default" badge on the favorite list (default: true)
showItemsCount?
optionalshowItemsCount?:boolean
Defined in: components/FavoriteLists.tsx:43
Displays number of products and clusters contained in the favorite list (default: true)
showLastModified?
optionalshowLastModified?:boolean
Defined in: components/FavoriteLists.tsx:40
Displays the last modified date on the favorite list (default: true)
user?
optionaluser?:Contact|Customer|null
Defined in: components/FavoriteLists.tsx:25
The authenticated user (Contact or Customer). Resolved from PropellerProvider when omitted.