neo4a Posted September 6, 2019 Share Posted September 6, 2019 Is it possible to close a modal form just by clicking in masked area? Thanks. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted September 6, 2019 Share Posted September 6, 2019 1 hour ago, neo4a said: Is it possible to close a modal form just by clicking in masked area? Hello, Can you please explain in more detail? Quote Link to comment Share on other sites More sharing options...
Freeman35 Posted September 6, 2019 Share Posted September 6, 2019 I think he mean, when click to out of showed modal form, it can be close? like Self.ModalResult:= MrCancei; Quote Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted September 6, 2019 Share Posted September 6, 2019 He Can you add this to Form -> ClientEvents -> UniEvents -> BeforeInit var me= sender; me.mon(Ext.getBody(), 'click', function(el, e){ me.close(me.closeAction); }, me, { delegate: '.x-mask' }); Quote Link to comment Share on other sites More sharing options...
neo4a Posted September 7, 2019 Author Share Posted September 7, 2019 14 hours ago, Hayri ASLAN said: Can you add this to Form -> ClientEvents -> UniEvents -> BeforeInit Sorry, doesn't work. Extended the Screensize demo with a button calling a separate, empty form. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted September 7, 2019 Share Posted September 7, 2019 19 hours ago, Sherzod said: 21 hours ago, neo4a said: Is it possible to close a modal form just by clicking in masked area? Hello, Can you please explain in more detail? Quote Link to comment Share on other sites More sharing options...
neo4a Posted September 7, 2019 Author Share Posted September 7, 2019 clicking outside of area (masked or shadowed form behind) of a modal form should close this modal form. Quote Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted September 7, 2019 Share Posted September 7, 2019 It's working as expected on my side. Please check attached project FocusLeave.zip Quote Link to comment Share on other sites More sharing options...
neo4a Posted September 8, 2019 Author Share Posted September 8, 2019 On 9/7/2019 at 3:26 PM, Hayri ASLAN said: It's working as expected on my side. Sorry for not mentioned that I'm trying to achieve that behavier with mobile version. 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.