Hi there!
In a React HOT component I would like to add an error comment on invalid inputs.
I have a columnFeatures array of objects, some of which have a validator:
if (/\d{8}/.test(value) || value == '') {
callback(true)
} else {
callback(false)
}
},```
The validator works fine on its own. Now through the afterValidate hook I'd like to add a comment similar to here https://handsontable.com/blog/articles/2017/12/guide-to-basic-data-validation
My questions:
How do I use colToProp in React?
How can I use the comments plugin in React?
Right now I'm looping over the columns to get the index by the col name the afterValidate function is giving me. Maybe there is another option then colToProp that I'm overlooking?
Thanks so much!
Lisa