Textbox in menu

Hi.
Is there a way to put a textbox in a menu? I want to insert some text in the menu.
Thanks.

Hi,

you may try to place input as item label:

menu.addNewSibling(prevId, id, ‘<input type=“text” …>’);

Thanks. It works!!!

Alexandra, now the problem is when i click into the input, the menu dissapear.
I set the property xMenu.setAutoHideMode(false) but continue dissapearing.

Menu closes on click. For this reason, you need to cancel bubbling on click:

menu.addNewSibling(prevId, id, ‘’<input type=‘text’ onclick=’(arguments[0]||event).cancelBubble = true’ …>’’);

Perfect.
Thanks Alexandra.