Guys,
It’s been days i’ve been trying to fix this but i don’t seem to be able to wrap my head around how to make independent use of an input field created in webix.
Pls check the following: http://webix.com/snippet/abadb429
with the following error:
Uncaught TypeError: a[YH] is not a function
the problem seems to be that i cannot use the field out of webix. Can this be achieved at all?
TIA
maksim
August 10, 2015, 12:52pm
2
You can use API of webix to get the HTML node reference
http://webix.com/snippet/b5265da3
Hidden elements are detached from DOM, so they will be not accessible by jQuery.
Hello Maxim,
var testelem = $$(“Field”).$view;
is okay but it returns more than it should. I am only interested in selecting the ‘input’ element, whereas testelem will contain all the divs wrapping around it.
thanks.
maksim
August 10, 2015, 4:17pm
4
You can use
$$("Field").getInputNode()
Beware that it can be null for hidden input, as element will not render self until it become visible.
awesome!
Thank you Maksim, it’s working with InputNode()!!!
BTW is that documented? I struggle finding those methods in the documentation
TIA!!! Your help is much appreciated
maksim
August 10, 2015, 8:10pm
6
API reference is generated automatically, so it contains ALL public methods. Unfortunately it may be not so easy to locate the necessary page.
http://docs.webix.com/api__link__ui.text_getinputnode.html
http://docs.webix.com/api__link__ui.text_$view_other.html