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

(Feat) add more function on backdrop #10

Closed
fa-aleasa opened this issue Feb 20, 2020 · 2 comments
Closed

(Feat) add more function on backdrop #10

fa-aleasa opened this issue Feb 20, 2020 · 2 comments

Comments

@fa-aleasa
Copy link

fa-aleasa commented Feb 20, 2020

I emplacements the script on ionic 5 and it is so beautiful.

Requesting features:

Can you please add the ability of backdrop color to be transparent from settings?

Also can you add more function like backdropClose like ability to change the pane to any Breakpoints.
for example if the pane on top and when i click on backdrop drop, will minimize the pane to bottom or middle based on my choice on settings.

roman-rr added a commit that referenced this issue Feb 20, 2020
@roman-rr
Copy link
Collaborator

roman-rr commented Feb 20, 2020

@aleasaDev

I emplacements the script on ionic 5 and it is so beautiful.

Thanks

Also can you add more function like backdropClose like ability to change the pane to any Breakpoints.
for example if the pane on top and when i click on backdrop drop, will minimize the pane to bottom or middle based on my choice on settings.

Updated package, now you can make this

let settings = {
  ...
  backdropTransparent: true,
  onBackdropTap: () => {
    this.cupertinoPane.moveToBreak('bottom');
  }
}

Or this

let settings = {
  ...
  backdropTransparent: true,
  onBackdropTap: () => {
    this.cupertinoPane.destroy({animate: true});
  }
}

@fa-aleasa
Copy link
Author

Nice work, and thanks so much for fast response. It’s working pretty good on actual devices.

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

2 participants