cos-archives / hgrid

[UNMAINTAINED] A Javascript-based hierarchical grid that can be used to manage and organize file/folder-like data
Apache License 2.0
23 stars 14 forks source link

In docs don't wrap "data_info" in quotes #46

Closed samchrisinger closed 10 years ago

samchrisinger commented 10 years ago

The docs are confusing on this, and passing a string argument here creates an infinite loop.

E.g.

var myGrid = HGrid.create({
  container: "#my-grid",
  info: "data_info",
  columns: [
    {id: "uid", name: "Data ID", width: 40, field: "uid"},
    {id: "name", name: "Data name", width: 400, field: "name"}
  ]
});

should be

var myGrid = HGrid.create({
  container: "#my-grid",
  info: data_info,
  columns: [
    {id: "uid", name: "Data ID", width: 40, field: "uid"},
    {id: "name", name: "Data name", width: 400, field: "name"}
  ]
});
sloria commented 10 years ago

Closing. This syntax has been deprecated