Constructors
constructor
- new WishList(initData): WishList
Methods
addItem
- addItem(id, itemClass, quantity?, uomCode?): void
Parameters
id: string
itemClass: string
Optional
quantity: number
Optional
uomCode: string
Returns void
bind
- bind(element): void
Returns void
Private
bindPlugins
- bindPlugins(element): void
Returns void
changeItemQuantity
- changeItemQuantity(itemId, quantity): void
Parameters
itemId: string
quantity: number
Returns void
getContent
- getContent(): null | BasicItem[]
getId
- getId(): string
Returns string
getItemByClassAndId
- getItemByClassAndId(cls?, id?): null | BasicItem
Parameters
Optional
cls: string
Optional
id: string
getItemById
- getItemById(id): null | BasicItem
getLastUpdated
- getLastUpdated(): Date
Returns Date
getName
- getName(): string
Returns string
getSize
- getSize(): number
Returns number
on
- on(event, callback): void
Parameters
callback: ((event) => boolean | void)
- (event): boolean | void
Returns boolean | void
Returns void
removeItem
- removeItem(itemId): void
Returns void
update
- update(wl): void
Returns void
Adds an Item to this wish list and updates this wish list data from server.