Class: ItemsFactory

ItemsFactory

Predefined items class factory for menu items.

Methods

getItems(pattern){Array}

Get all menu items based on pattern.

Parameters:
Name Type Default Description
pattern Array | Object | Boolean

Pattern which you can define by displaying menu items order. If true default
pattern will be used.

Returns: {Array}

setPredefinedItems(predefinedItemsCollection)

Set predefined items.

Parameters:
Name Type Description
predefinedItemsCollection Array

Array of predefined items.