How to open Lightbox on Single Click

Is it possible to open Lightbox on a single mouse click?

Hello,

It’s possible to show the Lightbox on onClick event.
docs.dhtmlx.com/scheduler/api__ … event.html
docs.dhtmlx.com/scheduler/snippet/fe9e8249

@Polina,

Did you look at the links before you posted them?

What does the first link mean? How does it show how to open Lightbox on a single-click?

Did you try the demo? In my Chrome (latest) nothing happens when I click to create a new Lightbox event.

This is a way to open the Lightbox on a single click on event for already existing events. Do you try to achieve this or anything else?

I don’t know how to achieve this.

Is it possible?

If it is, can you share the code to make it happen?

Thanks @Polina

Hi,
in order to open lightbox on a single click on, you need to

  1. capture a single click on event box
  2. when you captured a single click - you need to show the lightbox

It can be done using this API event and a method:

  1. docs.dhtmlx.com/scheduler/api__ … event.html - fires on a single click on event box
  2. docs.dhtmlx.com/scheduler/api__ … htbox.html - opens a lightbox for a provided event

here is a complete code (as shown in demo above):scheduler.attachEvent("onClick", function (id, e){ scheduler.showLightbox(id); return true; });

The demo itself seems working as expected - screencast.com/t/Du6HHFec - if it works differently for you - please provide a screen video of the issue or some steps to reproduce it

Does this answer your question, or did you mean something else?

Perfect. Solved.