Skip to main content

Drawer integration

The debate space can be integrated as a drawer that opens from the right of the screen (demo).


Insert the script that manages the drawer integration in the page, in the head tag, as well as a tag with the identifier logora_app, and the Logora configuration parameters.

 <!DOCTYPE html>
var logora_config = {
"shortname": "demo"
<script src=""></script>
<div id="logora_app"></div>

The tag with the logora_app id can be placed anywhere, as the drawer opens on top of the page.


To open the drawer, use the logora:drawer:display event with the path of the debate space page as an argument:

 const event = new CustomEvent("logora:drawer:display", { detail: { initialPath: "/debate/my-debate" }});