πInstallation & Initialization
Installing Yeerlo
<script type="text/javascript" src="https://sdk.yeerlo.com/v1.js"></script><link rel="stylesheet" href="https://sdk.yeerlo.com/v1.min.css">Initializing Yeerlo
<!-- the HTML container to render the events in -->
<div id="yc"></div> function renderEvents(){
const yeerlo = new window.Yeerlo({
container: "#yc", // where to inject the ui. e.g "#yeerloContainer" or ".yeerloContainer"
// 5 EVENT DISPLAY MODES (only enable one of the modes below)
creatorId:'2bbegYWBgxCUih8p26L17V3IM7W', // display events of a particular creator
// creatorIds: ['2bbegYWBgxCUih8p26L17V3IM7W'], // display events of specific creators. max. of 10 ids
// random: true, // display random events, from the visitor's location/country, from any creator (the default mode when none of the other modes are set)
// categorySlug: 'blockchain-and-crypto', // display events in a particular category, using the category slug and the visitor's country
// countryName: 'Canada', // "US", "UK", "Ghana", "Nigeria", "Australia" etc. display events in a particular country
// END 5 EVENT DISPLAY MODES
layoutMode: "events", // one of "events", | "cinemas", and "meetings" are coming soon
displayFormat: "default", // one of "default", "simple" | "masonry" and "boxed" are coming soon
limit: 0 // (Optional) total number of events you want to show. Helpful for using multiple instances on
// different sections of the same page. To show all the events, set the limit to 0 or omit the field entirely
})
yeerlo.init();
}
renderEvents(); // The result should display yeerlo events directly in your web appStructure of the Initialization Object
Property
Type
Required
Meaning
Last updated