0.0.4 • Published 9 years ago

table-grid-2d v0.0.4

Weekly downloads
2
License
MIT
Repository
-
Last release
9 years ago

Table-grid-2d

Build Status

Generates a spreadsheet-like table grid for representating junk that's naturally spreadsheet-like

HowTo

Suppose you have the following declared variables in your controller

colNames = ["gulag", "potato", "latvia", "cold"]
rowNames = [1..4]
comrades = []
comrades.push colName: "gulag", rowName: 1, id: "Mikhail"
comrades.push colName: "potato", rowName: 4, id: "Yuri"
comrades.push colName: "cold", rowName: 2, id: "Danil"

And you wanted your comrades in sort of bingo-grid spreadsheet table, do the following:

{{#table-grid-2d colNames=colNames rowNames=rowNames data=comrades originLabel="☭" action="cellTouched" as |comrade|}}
  <span>{{comrade.id}}</span>
{{/table-grid-2d}}

to get:

gulagpotatolatviacold
1Mikahil
2Danil
3
4Yuri

Notes

Yes, for now, all comrades must have a colName and rowName property. Sorry, perhaps in the future I will make this customizeable

Installation

  • git clone this repository
  • npm install
  • bower install

Running

Running Tests

  • ember test
  • ember test --server

Building

  • ember build

For more information on using ember-cli, visit http://www.ember-cli.com/.

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago