UNABLE to apply spinner on dropdown options on cell in handsontable

Tags: #<Tag:0x00007efc65799ec0>

Hi,

I am unable to implement a spinner/loader in dropdown option in handsontable. I have a column with drop-down fields and I want to show a spinner if the server takes more than 500ms to get the dropdown options. I am getting using AJAX call to load the options.
Is there a way to implement it?

Demo: https://jsfiddle.net/njmpfzgx/4/

I’m interested in this one too.
It would be great to have this option.

Hi @neha.goel @andraz.podobnik

We don’t have any examples showing such solution, because, in this case we don’t have any hooks that would “catch” the event to actually display the loader while awaiting for server response. However, you could construct a cell editor that would attach the loader and then hide it when the data are loaded.

You can read more about custom editors here: https://handsontable.com/docs/javascript-data-grid/cell-editor/

Hi @andraz.podobnik
Can you please provide a working example for the approach?

Hi @neha.goel,
I don’t have the example - but I wish there was one :slight_smile: