Is there a way to add multiple classes using the renderers method?

前端 未结 1 1393
北恋
北恋 2021-01-24 05:48

I\'m trying to build a rather complex looking table, and i\'ve been playing with various functionalities from handsontable.

One thing i was hoping to achieve is to have

相关标签:
1条回答
  • 2021-01-24 06:11

    The short is that no, you can't assign classes the way you're describing because Handsontable purposely re-renders the entire cell on each iteration. There is good reason to do this, mainly to reduce state bugs.

    It's not a bad idea to have more specific logic to determine all renderers needed for your columns so I would say it's reasonable (and not hacky!) to come up with logic to declaratively define your columns. You may want to think about using something other than col indexes to make the code more scalable. In our tables we tend to have column definitions stored in config files or created from our backend services. Hope that helps!

    0 讨论(0)
提交回复
热议问题