а

Create task pop-up questions


#1

Dear ,

When I apply the Gantt chart component, the pop-up content of the creation task is inconsistent with the pop-up style and content in the component according to our actual business.

So How can I adjust the interaction and fields of the new task


#2

Hi @kaikai,
If I understand you correctly, you want to customize the lightbox, which appears on creating/editing the task, am I right?
You can add some additional fields to the lightbox, using the gantt.config.lightbox.sections, for example, in a snippet below I added the “Priority” field to the task, and can change it using the lightbox:
http://snippet.dhtmlx.com/1a45b3f07

You can change the styles of the default lightbox elements using CSS, here is an example(HTML tab):
http://snippet.dhtmlx.com/6f0431a9e

Also, you can create the fully custom lightbox, here is the link to the docs, Custom Lightbox:
https://docs.dhtmlx.com/gantt/desktop__custom_edit_form.html

API:
lightbox to add/remove sections and controls:
https://docs.dhtmlx.com/gantt/api__gantt_lightbox_config.html
Templates of the Lightbox to specify the format of lightbox elements:
https://docs.dhtmlx.com/gantt/desktop__lightbox_templates.html


#3

That’s great. This is what I want.
Thank you Very much.