Hi Thierry,
I would like to have a window that does not close by clicking outside
In bootstrap I found: "static backdrop modal"
So in wcHTMLgen(), I added:
toHTMLgen.cScriptJSadd (TEXTMERGE ([jQuery('#modal-<<THISFORM.wcID>>').removeAttr("data-backdrop").attr("data-bs-backdrop", "static").attr(" data-bs-keyboard", "false");])) && Static
The addition was successfully made but the behavior is unchanged.
Do you see where the problem could be? Does FiC have a related property?
Thank you in advance
Finally, it is difficult to modify the behavior of the window after it is launched.
I ended up taking the problem in reverse and looking at how FiC generates the "backdrop" instruction
In awServer.prg
, I saw that it was enough to declare a windowType = 0 to generate 'data-backdrop="false"'
I still have to prevent the screen from closing by clicking on [Esc]
- How to do it ?
- I am far from having covered the issue because certain modal screens have a "static" behavior despite the HTML "backdrop" instruction
- Shouldn't we add "bs-" and a "keyboard" instruction like this (Bootstrap doc) ?
data-bs-backdrop="static" data-bs-keyboard="false"
Hi Vincent,
prevent the screen from closing by clicking on [Esc]
If your form is modal (.windowType = 1
) and has a callback method, it should not close by clicking on [Esc] or in the backdrop around the form.
In fact, I want a screen that does not close when clicking outside or by [ESC]