Documentation
Powered by Minitek FAQ Book
Initialization
Creating a new Polipop instance
var polipop = new Polipop(selector, options);
selector
The id of the element on which to instantiate Polipop.
Type: String
options
The instance configuration options.
Type: Object
For example:
var polipop = new Polipop('mypolipop', {
layout: 'popups',
insert: 'before',
pool: 5,
sticky: true,
});
Adding a notification to the queue
Notifications are added into a queue. Queued notifications are then rendered automatically into the DOM at a specific time interval.
polipop.add({
content: 'This is the message content.',
title: 'Message',
type: 'success'
});
See Polipop add() method.