JDDEV Posted February 10, 2021 Share Posted February 10, 2021 Hello all, 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" Thank's for help Quote Link to comment Share on other sites More sharing options...
Sherzod Posted February 10, 2021 Share Posted February 10, 2021 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; Quote Link to comment Share on other sites More sharing options...
JDDEV Posted February 11, 2021 Author Share Posted February 11, 2021 Thank you Sherzod, But this line UniEdit1.JSInterface.JSCall('inputEl.dom.setAttribute', ['type', 'date']); don't refresh UniEdit1 type. On developer mode in the browser the type is still 'text' Quote Link to comment Share on other sites More sharing options...
Sherzod Posted February 11, 2021 Share Posted February 11, 2021 Hello, 7 minutes ago, JDDEV said: But this line UniEdit1.JSInterface.JSCall('inputEl.dom.setAttribute', ['type', 'date']); don't refresh UniEdit1 type. Works for me. Which build are you using? Can you make a simple testcase to check? Quote Link to comment Share on other sites More sharing options...
JDDEV Posted February 11, 2021 Author Share Posted February 11, 2021 the build i use is 1.90.0.1539 Quote Link to comment Share on other sites More sharing options...
JDDEV Posted February 11, 2021 Author Share Posted February 11, 2021 Sorry, it's work fine. I have made a mistake on my code. Thank you. 1 Quote Link to comment Share on other sites More sharing options...
fraxzi Posted September 24, 2021 Share Posted September 24, 2021 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 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted September 25, 2021 Share Posted September 25, 2021 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? Quote Link to comment Share on other sites More sharing options...
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.