Hi - I’m trying to modify the lightbox in ways that scheduler.config.lightbox.sections doesn’t seem to support (like making textareas read-only, for example). Since the DOM isn’t modified until the lightbox is just about to be shown for the first time (and not until after onBeforeLightbox returns true) i appear to have no hook point at which i could, in one of the worst case scenarios, modify the generated DOM myself.
Additionally, i’d like to take advantage of the recurring events UI - so i’m loathe to totally diverge away from DHTMLX code base and make my own dialog/lightbox.
Is there a way to be able to more finely modify the lightbox prior to the user seeing it for the first time?
i could, in one of the worst case scenarios, modify the generated DOM myself.
You can use onAfterLightbox event - on moment of its call, lightbox is already rendered, but it is not the best way to handle such situation
ah - scheduler.form_blocks to create a custom editor… ya?
Yep, you can define your custom form element, or redefine methods of existing one ( they designed in such way, that methods can be redefined from external code, without modifications to the main codebase )
Also, you can replace showLightbox method and show fully custom form.