Getting value of toolbar input

Hi,

I’ve added used addInput to create an input field on a toolbar. However, I can’t figure out how to refer to its value. Could someone give me a small example of how to obtain the value and assign it to a variable?

Thank you.
JS

Hi,

Is that what you mean?

myToolbar.addInput(itemId, pos, value, width); http://docs.dhtmlx.com/api__dhtmlxtoolbar_addinput.html
var value = myToolbar.getValue(itemId); http://docs.dhtmlx.com/api__dhtmlxtoolbar_getvalue.html

http://dhtmlx.com/docs/products/dhtmlxToolbar/samples/09_item_input/05_value.html