Jump to content

Change Tab Order of UnimEdit Input Fields located on a Frame


Kattes

Recommended Posts

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 😀

temp.jpg

Link to comment
Share on other sites

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

Clipboard01.png

Link to comment
Share on other sites

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")}');
  ...

 

  • Like 1
Link to comment
Share on other sites

  • 2 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...