Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Add closeByBackdropClick into compenent with openIn popup #4107

Closed
Simone4e opened this issue Dec 2, 2022 · 1 comment
Closed

Comments

@Simone4e
Copy link

Simone4e commented Dec 2, 2022

Is your feature request related to a problem? Please describe.
The problem is that each element may have a different preference as to whether or not to close via backdrop.
For example in my case I have this need:

  • SmartSelect must not close via backdrop;
  • Photobrowser must be able to close via backdrop;
  • Popup must not close via backdrop;

With this configuration it is not possible to use the options present now (configuration from the app / component configuration on the page)

The simplest solution is to add the ability to change the parameter for each component that uses it.
Example:

$f7.photoBrowser.create({
  photos: [{
    url: 'photo1'
  }],  
  type: 'popup'
  popupOptions: {
    closeByBackdropClick: true
  }
}).open();

Or in app config

photoBrowser: {
        type: 'popup',
        popupOptions: {
           closeByBackdropClick: true
        }
}

This problem can be extended to any component that uses another component with options like this.

@Simone4e
Copy link
Author

Thanks @nolimits4web ✌️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant