josebalius / ngReactGrid

A really fast Angular grid using the power of React to render. Based on ng-grid and jQuery DataTables.
http://josebalius.github.io/ngReactGrid/
MIT License
328 stars 47 forks source link

Cell Template / Render function has no column/key param? #22

Open tannerlinsley opened 10 years ago

tannerlinsley commented 10 years ago

I've resorted using this plugin as opposed to the regular ng-grid in angular, cuz we are using some heavy data. And I must say, you're grid is awesome. I am having some trouble mapping our cell/column/header templates to react (which I know nothing about ;), and I'm trying to transfer not only the row data, but the column key into the render function. I can't find it anywhere, and would expect it to be something like this:

render: function(row, col){
//col.field
}

that way I can have a column/cell template.

Any chance on having a header cell template?

josebalius commented 10 years ago

@tannerlinsley Thank you!, yeah header cell templates sound good, i just won't have time until at least end of september :(. The render function doesn't give you the col, since it expects you to know the column name already? Do you have a more concrete example I can help with?

josebalius commented 9 years ago

Happy to say this will be supported very soon in: https://github.com/josebalius/react-grid