Kattes Posted July 6, 2021 Posted July 6, 2021 I am creating a little mobile app, which gathers user records. In general everything works fine, but I cannot change the Tab-Oder of the UnimEdit components. Somehow funny is that it has 100% reversed direction. All my tries to get this problem solved via JS calls to manipulate the HTML tabindex failed. Any ideas / suggestions are more than welcome 😀 Quote
Sherzod Posted July 6, 2021 Posted July 6, 2021 1 hour ago, Kattes said: Any ideas / suggestions are more than welcome 😀 Hello, Have you tried using CreateOrder property? Quote
Kattes Posted July 7, 2021 Author Posted July 7, 2021 Yes, I also tried this, but without any effect. Quote
Sherzod Posted July 7, 2021 Posted July 7, 2021 1 hour ago, Kattes said: I also tried this, but without any effect. Do you have a simple testcase to reproduce this issue? Quote
Kattes Posted July 7, 2021 Author Posted July 7, 2021 Dear Sherzod, perhaps you can just give me a quick hint how to change "tabindex" of an UnimEdit component using JS. I tried this, but it fails: function added(sender, container, index, eOpts) { //alert(sender.el.query('input')[0].id); sender.el.query('input')[0].tabindex = "2" } Kind regards, Kattes Quote
Sherzod Posted July 7, 2021 Posted July 7, 2021 4 hours ago, Kattes said: I tried this, but it fails: Hi, Can you make a simple testcase!? Quote
Kattes Posted July 7, 2021 Author Posted July 7, 2021 Sure, Please find attached a simplified testcase. Best regards, Kattes testcase.zip Quote
Sherzod Posted July 7, 2021 Posted July 7, 2021 46 minutes ago, Kattes said: testcase.zip 419.23 kB · 0 downloads I will check. Quote
Sherzod Posted July 7, 2021 Posted July 7, 2021 2 hours ago, Kattes said: Please find attached a simplified testcase. Dirty workaround: ... UnimEditFirstname.CreateOrder := 1; UnimEditFirstname.JSInterface.JSAddListener('painted', 'function(me){me.inputElement.dom.setAttribute("tabindex", "1")}'); UnimEditLastName.CreateOrder := 2; UnimEditLastName.JSInterface.JSAddListener('painted', 'function(me){me.inputElement.dom.setAttribute("tabindex", "2")}'); UnimEditStreet.CreateOrder := 3; UnimEditStreet.JSInterface.JSAddListener('painted', 'function(me){me.inputElement.dom.setAttribute("tabindex", "3")}'); UnimEditZIP.CreateOrder := 4; UnimEditZIP.JSInterface.JSAddListener('painted', 'function(me){me.inputElement.dom.setAttribute("tabindex", "4")}'); UnimEditCity.CreateOrder := 5; UnimEditCity.JSInterface.JSAddListener('painted', 'function(me){me.inputElement.dom.setAttribute("tabindex", "5")}'); UnimEditEmail.CreateOrder := 6; UnimEditEmail.JSInterface.JSAddListener('painted', 'function(me){me.inputElement.dom.setAttribute("tabindex", "6")}'); ... 1 Quote
Kattes Posted July 7, 2021 Author Posted July 7, 2021 Thank you so much for this Sherzod! Even if it is a dirty solution it saves my day - I was already getting mad about it 😄 Kind regards, Kattes 1 Quote
PS1 Posted October 6, 2023 Posted October 6, 2023 There is no easier solution for this ? Shouldn't it be fixed in some patch ? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.