Klevu Events

Description:  Klevu framework provides multiple type of events and event interfaces. At the time the Klevu lib becomes ready to be used a function klevuInit is searched and executed from the main document. When including the library via Dynamic loading take this in account.

Core events

Description:  Core events are custom build and executed events. The event will generate a klevuChain there is no data or scope on the created chain. The chain will execute from the time of creation for  maxCount times with an interval of delay or until the event evaluates to true via the fire function. If the event has already executed any promise…

Search events

Description:  Klevu framework comes with a list of search events and functions that help the power up of the search box and landing page These are stored as part of the klevu.searchEvents formatted as follows klevu.searchEvents box focus – responsible for preprocessing the focus event and executing the scope chain chains.events.focus keyup – responsible for preprocessing…

DOM events

Description:  Klevu framework comes with a interface to execute functions when DOM is fully loaded klevu.ready(object or functionSource) – when the document is in ready state , when DOM is in this state klevu.isReady will be true object contains : name: name of the function to be executed – unique per event fire: source code of the…

Defined events

Description:  Bind an event handler to the JavaScript event. klevu.event.attach : function ( target , event , callBack , useCapture ) target – dom node target event – js event name , refer to event list for support callBack – function to be executed when event is fired useCapture –  default false – A Boolean indicating whether events of this type will be dispatched to the…