Hii,
I want to add a custom dropdown with colors in task edit popup.
example image:
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'
}
}
}
}
}
}