Jump to content

Change "InputType" in RunTime


mikromundo

Recommended Posts

5 hours ago, mikromundo said:

It´s possible to change "inputtype" in Runtime ?

 

I have tried 2 ways:

 

TUniEdit(pDbEdit).InputType := 'date';

 


with TUniControl( pDbEdit ).JSInterface do
begin
  JSConfig('inputType',['date']);
end;

 

image.png.7b7dddb6ae0ffa291e08e089717ec468.png

Hello

You can use below code.


  with UniEdit1, JSInterface do
  begin
    JSAssign('inputEl.dom.type', ['date']);
  end;

 

Link to comment
Share on other sites

Thank you for your attention, @Sherzod

See, as I mentioned in the post title I need to change the "InputType" property at runtime.

I have a "UniDBEdit" with InputType = text but when the application runs I want to change it to "date" or to "tel" or to "number" ...

I hope you got to explain and thank you again for your attention.

Link to comment
Share on other sites

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...