Skip to content

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

@Simone4e

Description

@Simone4e

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions