Hey Omid,
You can use React to render an inline field on the block, but keep in mind that when rendering anything on the blockly Blockly expects SVG.
So to render a combo box field, you have a couple of options:
- Use SVG to render something that looks like a combo box field, when a user clicks on the field load data from the server and display it, etc.
- Render HTML wrapped in a
foreignObject. However, depending on your browser support, foreignObjects are not supported in IE11.
When rendering in the DropdownDiv, that expects HTML, and you're free to do anything you would normally do in React. Hope this helps!
Cheers,
Sam