а

HELP ME! need Selection box with input text


#1

Hello!
I want a selection box that’s not only showing options that already on gantt.serverList, but also allowed user to input a new options, is that possible? help me please, thanks.


#2

Hello Farroh,
Gantt doesn’t have that functionality.
You need to create a custom element and use a third-party library that has the functionality you need.

The following article explains how to create a custom element in the lightbox:
https://docs.dhtmlx.com/gantt/desktop__custom_editor.html
You can return any HTML elements in the custom element, for example:
http://snippet.dhtmlx.com/b80782d02
https://snippet.dhtmlx.com/fb1c756cc

I used the following plugin that adds tags:


Here is an example of how it works:
http://snippet.dhtmlx.com/e5cd95638
Note: pressing “Enter” will close the lightbox, you need to use “,” to create the tag or option.


#3

thankyou so much! :star_struck:
you help a lot