SemanticScuttle/includes/js/dijit/tests/layout/combotab.html

12 lines
495 B
HTML
Raw Normal View History

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