Add Custom Lightbox in angular 2 using typescript

Hello All,

Please help me to create custom light box in angular 2 with typescript frame work.
Following document snippet not work for me it give error to me to find form data.

https://docs.dhtmlx.com/gantt/desktop__custom_edit_form.html

Thanks,
Kaushik

Hello Kaushik,
You need to declare some variables with the special, typescript parameters. For example:

var form: any = document.getElementById("input_field"); var form = document.getElementById(id) as HTMLInputElement;

Here is the demo:
drive.google.com/open?id=1XkD3O … aIkNWpD8rx
Unpack it somewhere and run:

npm install

or

sudo npm install

then run:

ng serve

You will be able to create tasks, rename and delete them and cancel opening the lightbox.
angular+lightbox[overlay].7z (66.5 KB)