我已經從大氣中安裝了Handsontable軟件包,並且除了當我嘗試創建自定義單元格渲染器時,定義表格在我的應用程序中正常工作。流星錯誤,未定義Handsontable
在定義表中的問題的代碼是此列的定義:
{
type: {
renderer: function(instance, td, row, col, prop, value, cellProperties) {
Handsontable.TextCell.renderer.apply(this, arguments);
$(td).css({
background: 'yellow'
});
}},
//format: '0, 0.00 $',
readOnly: true
}
每當我試圖使像上面的Handsontable.Textcell.renderer.apply一個Hansontable電話,流星引發此錯誤:
Exception from Deps afterFlush function: ReferenceError: Handsontable is not defined
我讀過Handsontable使用Jquery 1.9,但Meteor與1.8捆綁在一起。這可能是一個問題嗎?
我在Handsontable中看到的自定義單元格渲染器的每個示例與我所看到的類似,所以我對這個問題非常迷茫。我還用最新版本創建了一個Handsontable自定義包,但這也沒有幫助。
想得到任何幫助。謝謝!
驚人的回答,非常感謝你! – rickydav