I didnt find any solution for this. Thank you.
Hi there …
Unfortunately, no
If you use a repeater instead (and you can design it like a table), then you can achieve it using onKeyPress()
Assuming he has input fields? Or is it possible otherwise?
@ahmadnasriya Yes, you’re right my answer is wrong and can’t work well .
The only solution I can see is to create a table using custom elements, and add an event listener to detect keydown events.
@ahmadnasriya I do not have input fields in the table.
@jonatandor35 So it wont work with the repeater neither, right?
Can you explain a little bit more the table with custom elements and adding event listener ? With a small example if its possible.
I tried to add keypress event listener to my table but it didnt work.
Thank you!
@ariesjulianna It won’t work with repeaters. (Sorry for the wrong answer. Personally I almost only work with custom elements for repeaters and tables due to the current style and performance limitations of the native elements, so I forgot you can’t do it with repeaters).
You can’t add such an event listeners to Wix tables.
Custom elements can only work on premium accounts where you have your own domain, and not with free accounts under wix.com domain).
For custom elements you have to code your element with html and css and you can create communication between Wix page code and the custom element.
But of course, you can only use it if you know how to code with html & css.
You can see example here for custom repeaters:
https://github.com/yoavaa/corvid-custom-elements/tree/master/custom-repeater
And you can adjust it for tables as well and add event listeners as you wish.
Here is the custom elements documentation:
https://support.wix.com/en/article/velo-example-coding-based-on-the-custom-element-template
https://support.wix.com/en/article/wix-editor-adding-a-custom-element-to-your-site
https://www.wix.com/velo/reference/$w/customelement
I know this is not a solution that most of Wix users won’t use (because it requires non-Corvid coding) but if you wish to get into it, you can start from these links.
@jonatandor35 Thank you very much, Im okay with html,css so I will give it a try! Thanks again, have a good day!
You’re welcome
By the way, in preview mode custom elements are wrapped in an iframe, so in order to see how it’s going to look like on live site you’ll have to test it on live pages…