Our state of the art Gantt chart


Post by ggalipeau »

I am using a combo box for functionality from the toolbar for my gantt chart. I am using this syntax:

  { type : 'combo', placeholder : 'WBS From', ref : 'wbsFrom', items: taskRecord.taskStore.allRecords.filter(r => r.level > 2 && !r.wbspwa.startsWith('G')).map(r => r.wbspwa)},

Basically, getting a dropdown of all the wbs values from my Gantt.

Then, when the user hits a button, I try to get the value from the combo box using:

widgetMap.wbsFrom.value 

When someone chooses from the combo box, it works perfect. But, if someone types the WBS in, the control allows them to type the WBS in, but the "value" is empty.

It seems like the typing of the combo box is purely filtering the combo box and not setting the value.

Is there any way to get what the users types from the combobox?


Post by pmiklashevich »

Yes, the input works like a filter. If nothing is selected you can get the value from the input:

combo.input.value

Pavlo Miklashevych
Sr. Frontend Developer


Post Reply