Custom lightbox with angular directive?

Hi,

I’d like to create a cuistom lightbox and I’ve seen the example code for doing this but the problem is that I’m using an angular directive to wrap the scheduler functionality and I’m a bit confused about how to access my custom form from inside the directive.

If I have this inside my directive:

var custom_form = document.getElementById("custom_form");

 scheduler.showLightbox = id => {
     var ev = scheduler.getEvent(id);
     scheduler.startLightbox(id, customForm);

     //document.getElementById("some_input").value = ev.text;
 }

Then how am I supposed to get access to the div with id “custom_form” that is placed in my template?

/Regards