jarek-foksa/xel

Is there any way to access the value inside of the different form components?

ferretwithaberet opened this issue · 4 comments

Literally what the title says, I want to be able to access the value of components like x-input, I was able to do my own thing for x-checkbox, x-switch, x-radio and x-select but I cannot figure it out how to do it for components like x-input as the value is stored somewhere inside of the shadow dom which is closed...

x-input does not have a "value" attribute, but it has a "value" property which you should be able to access from JavaScript. I will document it when Xel 1.0 gets released in January.

The new project website now documents the JavaScript API for each element.