我绑webix表,并收集骨干结合起来,作为所示webix文档(http://docs.webix.com/desktop__backbone_collections.html),但是它似乎没有工作的。对象同步调用发生,但没有数据加载。集成webix表和骨干
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)
}
您可以发布'Backbone.Budget.Collection'和'window.budget'的结构? – 2014-12-10 07:44:15
@ZacharyK你可以发布你的模型代码?并在其中设置网址到REST服务 – Deeptechtons 2014-12-11 09:57:45