UNPKG

dijit

Version:

Dijit provides a complete collection of user interface controls based on Dojo, giving you the power to create web applications that are highly optimized for usability, performance, internationalization, accessibility, but above all deliver an incredible u

10 lines (9 loc) 552 B
<div data-dojo-id="stateStore" data-dojo-type="dojo/data/ItemFileReadStore" data-dojo-props='url:"../_data/states.json"'></div> State: <span id="editable" data-dojo-type="dijit/InlineEditBox" data-dojo-props='editor:"dijit/form/ComboBox", editorParams:{value: "California", store: stateStore, searchAttr: "name", promptMessage: "Please enter a state"}'> <script type="dojo/on" data-dojo-event="change"> // connect to editable onChange event, Note that we don't need to disconnect console.log('User selected:'+this.getValue()); </script> </span>