You can listen to events on an instance of Sidenotes.
Callbacks can be registered with the onmethod
and unregistered with the removeListener
method. A once
method is available for convenience if the callback is to be called only once and then unregistered.
var app = Livefyre.Sidenotes(convConfig);
app.once('sidenotes.initialized', function () {
// Sidenotes initialized!
});
For more information on Livefyre events, see the JavaScript Events page in the Reference section.
Key | Description |
---|---|
sidenotes.initialized | Fired when the App is instantiated, has data, and is on the page. |
sidenotes.commentFlagged | Fired when a comment has been flagged. Data contains:
|
sidenotes.commentPosted |
Fired when a comment has been posted. Data contains:
|
sidenotes.commentShared |
Fired when a comment has been shared. Data contains:
|
sidenotes.commentVoted |
Fired when a comment has been voted on. Data contains:
|
sidenotes.userLoggedIn |
Fired when a user logs in. Data contains:
|
sidenotes.userLoggedOut |
Fired when a user logs out |