Our state of the art Gantt chart


Post by harshalkhode1703 »

Hii,
I want to add a custom dropdown with colors in task edit popup.

example image:

MicrosoftTeams-image.png
MicrosoftTeams-image.png (37.18 KiB) Viewed 95 times

Post by tasnim »

Hi,

You need to extend our combo to set a type of it
So you can add it to the task editor

class MyCombo extends Combo {
    static get type() {
        return 'colorscombo';
    }
    
// add your stuff here } MyCombo.initClass();

And then add it the the task editor

    features : {
        taskEdit : {
            items : {
                generalTab : {
                    items : {
                        newItem : {
                            type : 'colorscombo',
                            items : ['Apple', 'banana', 'lemon', 'orange'],
                            label : 'Select an Item'
                        }
                    }
                }
            }
        }
    }

Post Reply