2017-08-04 6 views
0

私は、角度1を使用してag-Gridでtypeaheadを実装しようとしています.ag-Gridドキュメントのサイトで示されている先行実装は、Angular 2先読みであるng2-typeaheadを使用しています。Type-Head with ag-Grid

私が取り組んでいるアプリケーションはAngular 1.5をベースにしているので、セルエディタを使ってAngular typeahead(ui.bootstrap.typeahead)を実装しようとしました。どういうわけか、それはグリッドで動作していないようです。私が先読みしようとしている列は「リリース」です。私が作成したセルエディタは「ReleaseEditor」です。私は、データを取得するためのライブJSONサービスを使用しています。 somoneがこれで私を助けることができれば素晴らしいだろう。

セルエディタは

function ReleaseEditor() { 
} 

ReleaseEditor.prototype.init = function (params) { 
    this.eInput = document.createElement('input'); 
    this.eInput.setAttribute("typeahead", "suggestion for suggestion in cities($viewValue)"); 
    this.eInput.setAttribute("typeahead-wait-ms", "300"); 
    this.eInput.setAttribute("ng-model", "result"); 
    this.eInput.value = params.value; 

}; 

ReleaseEditor.prototype.getGui = function() { 
    return this.eInput; 
}; 

ReleaseEditor.prototype.afterGuiAttached = function() { 
    this.eInput.focus(); 

}; 

ReleaseEditor.prototype.getValue = function() { 
    return this.eInput.value; 
}; 

This is the link to the plnkrを作成しました。

答えて

関連する問題