Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Button options on modal window
#1
Hello, 

I would like to know which options can be set on a button of a window modal, because i need to show one of the buttons disabled.  For example the 'noclose' option can be set to remain the modal after press the button

I would also ask if it's possible to show the locker after press the button on the modal window and the event is launched on the server.
Reply
#2
Currently there is no option to disable it. It's easy to disable it via JavaScript though:

IW.$('iw-dlg-btn2').disabled = true;

each button is named "iw-dlg-btn" + the position of the button, from left to right, the first is 1.

The code above would disable the second button in the dialog. Does it solve your problem?
Reply
#3
(10-22-2025, 06:56 AM)Alexandre Machado Wrote: Currently there is no option to disable it. It's easy to disable it via JavaScript though:

IW.$('iw-dlg-btn2').disabled = true;

each button is named "iw-dlg-btn"  + the position of the button, from left to right, the first is 1.

The code above would disable the second button in the dialog. Does it solve your problem?

Hello Alexandre, thank you for the answer. 

I've solved it by editing the buttons before showing the modal, therefore, the option is generated when proceed. Our main problem now is that 
there is no way to show the locker when clicking on a modal and a process is launched until it finishes. Or it is? 

thank you very much.
Reply
#4
Let me see if I can put together an example.

Cheers
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)