Combobox in Toolbar

Hello!

I want to use a combobox control within a toolbar.
In the toolbox i added an customHtml control with html property set to:
html: “

I create my combobox with var combobox = new dhx.Combobox(‘place_for_my_combobox’, comboConfig).

The combox is added to the window as last element, but not in the toolbar.

Any ideas how to solve this problem?

Thank you in advance!

most probably your tollbar (and your customHTML element) is not rendered yet.
You may try to use the awaitRedraw helper to make sure the code is executed after the component painted,.
Siomething like:

dhx.Toolbar("box",config)
dhx.awaitRedraw().then(() => {
	var combobox = new dhx.Combobox(‘place_for_my_combobox’, comboConfig).
})