在Webix Jet中使用拖放功能进行多选

时间:2015-11-03 15:53:06

标签: drag-and-drop webix

我使用Webix Jet创建一个简单的文件管理器,但我无法通过拖放操作来应用multiselect

例如:

{ view: "dataview", id: "fileV", type: "fileView", multiselect: true, drag: true, ... }

轻松select一切运作良好,那么可能出现什么问题?

1 个答案:

答案 0 :(得分:4)

您怎么看?

webix.ui({
  view:"dataview", 
  id:"dataview1",
  select:true,
  multiselect:true,
  type: {
    height: 60
  },
  drag:true,
  template:"<div class='webix_strong'>#title#</div> Year: #year#, rank: #rank#",
  data:[
    { id:1, title:"The Shawshank Redemption", year:1994, votes:678790, rating:9.2, rank:1},
    { id:2, title:"The Godfather", year:1972, votes:511495, rating:9.2, rank:2},
    { id:3, title:"The Godfather: Part II", year:1974, votes:319352, rating:9.0, rank:3},
    { id:4, title:"The Good, the Bad and the Ugly", year:1966, votes:213030, rating:8.9, rank:4},
    { id:5, title:"My Fair Lady",year:"1964",votes:"533,848",rating:"8,9",rank:"5"},
    { id:6, title:"12 Angry Men",year:"1957",votes:"164,558",rating:"8,9",rank:"6"}
  ]
});

代码段:http://webix.com/snippet/a56bce1d

这是你需要的吗?