Subversion Repositories Applications.papyrus

Rev

Blame | Last modification | View Log | RSS feed

<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>