You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can't find anywhere in the documentation or code (first time reading coffeescript so I might have missed it) if it's possible to specify heading order. I think it comes down to these lines?
for key of row
@_addCell(key, col)
@cellMap.push(key)
col += 1
@_endRow()
Perhaps we can add a method to set cellMap manually, instead of using the first row? Since we can't rely on key ordering inside the row object, I don't see any other simple solution. What do you think?
The text was updated successfully, but these errors were encountered:
Hi I have just done a little test and discovered that headers depend on the order keys are specified in the first object. var data = [ { "Location": "Sweden", "Name": "Bob", }, { "Name": "Alice", "Location": "France" } ];
Would give the location in the first column and name in the second.
I can't find anywhere in the documentation or code (first time reading coffeescript so I might have missed it) if it's possible to specify heading order. I think it comes down to these lines?
Perhaps we can add a method to set cellMap manually, instead of using the first row? Since we can't rely on key ordering inside the row object, I don't see any other simple solution. What do you think?
The text was updated successfully, but these errors were encountered: