Hello, I’m learning handsontable, the document is not clear enough, for example, I’m learning the react now, I don’t know how to use the Api, can there be a demo of the react calling the Api
Hi @ronwrh
Yes, you are right, we should add more demos for the wrappers. That is in our plans for Q4 this year.
ps. here is a demo tahat may help https://codepen.io/anon/pen/QgQmLX?editors=0010
At the bottom of the example there’s a reference to the instance named as hotInstance
. It is used to call updateSettings
method but it will also work for hotInstance.getPlugin('plugin_name)
Excuse me, can you use setRangeBarColors in handsontable? I can’t use setRangeBarColors while learning the react
Hi @ronwrh
Can you send a demo with your recent progress?
sorry. It’s my fault
So is the issue gone now? If you’re still struggling to make it work I can help you.
The problem has been solved. If I now need the user to set the background color and text color freely, which API should I use?
Thank you for confirmation.
I recommend to use classes. Here is an example of color-choose in the context menu Handsontable example - JSFiddle - Code Playground
I mean keep the CSS class in Data sources, because I want to filter the Data through CSS class, I don’t want to show the CSS class in the cell, and I can still set the CSS class freely to change the base color of the cell
You can only use our predefined filters when the associated data is provided in the table. If you mean filtering as a process of showing some cells in the grid it should be possible, but it depends on the data structure. I would need to see it to check if there’s any easy way to achieve it.