2016-09-25 1 views

答えて

1

選択したアイテムで何かをしようとしていますか?その場合は、completionオブジェクトのpickイベントを聞く必要があります。あなたは、このことによってそれを行うことができます。詳細については

... 
var completion = {list: someHintList, from: somePos, to: somePos}; 
CodeMirror.on(completion, "pick", function(selectedItem) { 
    // Do something with the selectedItem. 
    // This function would be called after user pick a item from the list. 
} 
return completion; 

document about hint addonをチェックしてみてください。

+0

あなたの答えをありがとう...私はonselectを使用しています。 – sara

関連する問題