Skip to content

Latest commit

 

History

History
executable file
·
22 lines (15 loc) · 588 Bytes

README.md

File metadata and controls

executable file
·
22 lines (15 loc) · 588 Bytes

#Overview

This is a table view for Sproutcore.

##How to Use

MyApp.arrayController.columns = [  
  SC.TableColumn.create({ key: "key1", label: _("Label 1"), width: 100 }),
  SC.TableColumn.create({ key: "key2", label: _("Label 2"), width: 200 }),
];


SC.TableView.extend({
  contentBinding: 'MyApp.arrayController.arrangedObjects',
  selectionBinding: 'MyApp.arrayController.selection',  
  columnsBinding: 'MyApp.arrayController.columns',
})

##TODO:

  • Improve documentation
  • Add unit tests