handsontable / hot-table

Handsontable - Best Data Grid Web Component with Spreadsheet Look and Feel.
http://handsontable.github.io/hot-table/
MIT License
130 stars 36 forks source link

Alternate row colors #19

Closed devmikko closed 8 years ago

devmikko commented 8 years ago

I'm sorry for this noobish question but since migrating to 0.2 (Polymer 1).

How can I implement an alternating row colors.

Is it going to be handled by the renderers?

budnix commented 8 years ago

Hi, you are right you can handle this by the renderer like this http://jsfiddle.net/k7w35tgb/1/.

devmikko commented 8 years ago

Thanks! It's my fault I removed the double curly brackets since I thought they are referencing to a function.

Can this also be done via the declarative renderers?

budnix commented 8 years ago

Unfortunately for now only columns you can declare in declarative way (via hot-column - http://handsontable.github.io/hot-table/examples/editors.html)

devmikko commented 8 years ago

Ok :) Thank you very much.