The walker uses the elbLayer to handle all events. It is possible to also trigger custom events manually using JavaScript:
elbLayer.push(action, entity, data?, trigger?);
Both action and entity are strings and required. The data object holds all properties of an entity and is recommended to use. The trigger is optional and is expected to be a string.
When dealing with the elbLayer make sure to initialize it properly by writing one line before making use of the push method:
elbLayer = elbLayer || [];
elbLayer.push(âviewâ, âpageâ, { id: â/overlay/loginâ, name: âLog Inâ }, âvisibleâ);
elbLayer.push(âaddâ, âproductâ, { id: âskuâ, name: âShirtâ });
elbLayer.push(âconfirmâ, âwizzardâ, { id: âcarâ, name: âCustom Carâ, version: 2 }, âclickâ);