UIグリッドのcellTemplateからjavascript関数を呼び出して、その行のエンティティ値の一部をパラメータとして渡したいとします。UIをグリッドの行データをcellTemplateのjavascript呼び出しにバインドする
私が関数をhrefから直接呼び出すと、 'unsafe'が前に付加されます。
私はどのように私はそれを呼び出すと、それが適切にバインドされていなければならない?(安全ではないプリペンドを得ることはありませんが。)それが適切に結合しない属性
のonclickからそれを呼び出す場合
hrefの試み:
columnDefs: [
{ name: "DocNumber", cellTemplate: '<a href=\'javascript:apci.LoadDoc("{{grid.appScope.selectedPayer.PayerRef}}")\'>{{row.entity.DocNumber}}</a>' },
]
onclickの試み:
columnDefs: [
{ name: "DocNumber", cellTemplate: '<a href="#" onclick=\'javascript:apci.LoadDoc("{{grid.appScope.selectedPayer.PayerRef}}")\'>{{row.entity.DocNumber}}</a>' },
]
アンギュラ1.5.0 UIグリッド4.0.6