我想将 webix 表与骨干集合集成,如 webix 文档 ( http://docs.webix.com/desktop__backbone_collections.html ) 中所示,但它似乎不起作用。对象同步调用发生,但没有加载数据。
budgets = new Backbone.Budget.Collection(window.budget)
list =
width : 320
view : "datatable"
id : "budget_list"
backbone_collection : budgets
select : true
scroll : false
columns :[
{header : "Month", id: "budget_month"}
{header : "Year", id: "budget_year"}
{header : "Currency", id: "base_currency"}
]
on: {
onAfterRender : () ->
console.log("Sync ", @_settings)
@sync(@_settings.backbone_collection)
}