Javascript Event System - my-home-page-before-display-feed

From KickApps Documentation

Jump to: navigation, search

This article pertains to the Javascript Event System. You can refer to our list of Javascript Event System Supported Events to learn what else you can do with our event system.

Contents

Summary

This event is fired before displaying a feed on the member home page.

Payload Parameters

feedUrl
(string) The URL of the feed to be parsed and displayed.
element
(jQuery) The element containing the list of items.


Execution Interruption

If your event handler returns false, the execution will halt and the feed will not be parsed or displayed.

Example

function onBeforeDisplayFeed(data) {

   // do something here
   console.log(data.feedUrl)

} var newEventId = Ka.events.listen('my-home-page-before-display-feed', onBeforeDisplayFeed);