Hello. Could anyone help me with my question:
How to import EDITOR_STATE
variable? I’m tried few variants but they not work:
import { EDITOR_STATE } from 'handsontable';
import { EDITOR_STATE } from 'handsontable/editors/baseEditor/baseEditor.js';
import { EDITOR_STATE } from 'handsontable/src/editors/baseEditor/baseEditor.js';
Hi @denial.trombol
What would you like to achieve?
If you plan to create a custom cell editor based on the BaseEditor
we recommend doing it as in this demo https://jsfiddle.net/871tc0h4/
Hi @aleksandra_budnik
You are right, I’m using custom cell editor based on BaseEditor
. And I need EDITOR_STATE
to compare current state with available states from it. It’s required for some extra logic.
Seems, I found how to import it:
import { EDITOR_STATE } from '@/../node_modules/handsontable/editors/baseEditor/baseEditor.mjs';
Thank you for additional details @denial.trombol
The EDITOR_STATE
is not on the list of modules. I will check that with the team and get back to you after the weekend.
@denial.trombol
Could you share your custom editor logic? That way I will be able to share what’s the idea underneath this need.
This is no longer necessary. That logic quite big and I can’t share whole script due to NDA.
Thank you.
I understand. I will then close this thread.
If anything changes, please fee free to contact us at support@handsontable.com
1 Like