pipTips
pipTips.Service
Service provides an interface to manage tips state. The service is available only on run phase.
Filters passed tips by passed topic and sorts result collection.
View source
Source array of tips entities
Name of topic to filter by it
Filtered and sorted collection.
pipTips.filterTips(tips, 'goals');
Shows a tip
Collection of tips
Language for tip content
(default: 'en')
Name of needed topic
Settings object
Days amount throughout tips should be shown
(default: 2)
Returns tips collection according to topic.
User's party object
Callback function. It gets tips collection as argument.
Shows tip to user.
Array of tips
Chosen language
Event object
(default: null)
pipTips.showTips(tips, 'en');