Table View documentation #8

Open
darklajid opened this Issue Jun 19, 2012 · 0 comments

Projects

None yet

1 participant

@darklajid

Read http://perka.github.com/backbone-ui/

The "Table View" part contains this code

var table = (new Backbone.UI.TableView({ sortable: true, model: regions, onItemClick: function(model) { alert(model.get("name")); }, columns: [{ title: "Name", content: "name" }, { title: "Notes", width: 100, content: "notes" }] })).render();

and contains this documentation for columns:

Each column should contain a label property to describe the column's heading, a content property to declare which property the cell is bound to, an optional two-argument comparator with which to sort each column if the table is sortable, and an optional width property to declare the width of the column in pixels.

What is it? "title" or "label"?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment