Jump to content

UniEdit InputType at Runtime


JDDEV

Recommended Posts

Hello,

18 minutes ago, JDDEV said:

Is it possible to change an UniEdit InputType property at runtime ?

When i change it, an Ajax error is showing : "O161.setInputType is not a function"

Try this approach for now:

procedure TMainForm.UniButton1Click(Sender: TObject);
begin
  //UniEdit1.InputType := 'date';
  UniEdit1.JSInterface.JSCall('inputEl.dom.setAttribute', ['type', 'date']);
end;

 

Link to comment
Share on other sites

  • 7 months later...

Hi @Sherzod,

Using this:

UniEdit1.JSInterface.JSCall('inputEl.dom.setAttribute', ['display', 'none']);

nothing happens.

i want to hide trigger at runtime (when trigger #1 click and trigger #2 shows) ... "UniEdt1.Triggers.Item[0].Visible := false: doesn't work either ..ImageIndex := newIndex doesn't work as well...

Maybe if i am missing something. Any correction?

 

Thanks,

Frances

Link to comment
Share on other sites

1 hour ago, fraxzi said:

nothing happens.

i want to hide trigger at runtime (when trigger #1 click and trigger #2 shows) ... "UniEdt1.Triggers.Item[0].Visible := false: doesn't work either ..ImageIndex := newIndex doesn't work as well...

Maybe if i am missing something. Any correction?

Hello, 

Do you have a simple testcase to check?

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