OnsenUI icon indicating copy to clipboard operation
OnsenUI copied to clipboard

Dialog show() method parameters are broken

Open rgins16 opened this issue 10 years ago • 2 comments

[](Github issues should be used only for bugs and feature requests. For questions please visit https://stackoverflow.com/tags/onsen-ui or https://community.onsen.io. For bugs please use the following template.)

Environment Onsen 2 MEAN.JS Latest Version of Chrome

Encountered problem I have created a dialog in my jade file. I am displaying it in JavaScript using the dialog show method and optional show parameters like this:

ons.createDialog('dialog.html').then(function(dialog) {
  var options = {
    animation: "fade",
    animationOptions: {delay: 2.0}
  };

  dialog.show(options);
});

The dialog does not "fade", but it slides from the bottom. The delay still works as expected.

Additionally, when I changed the animation to "none", there is no animation as expected, but the delay does not work.

rgins16 avatar Aug 24 '16 13:08 rgins16

Thanks @rgins16 ! We will take a look at this.

argelius avatar Aug 29 '16 08:08 argelius

@rgins16 I took a look at the code and it looks like the docs for the "fade" animator is a mistake. There is only two default animators for iOS and Android + a simple slide animation.

We will consider adding a simple fade animator for the dialogs as well.

The delay parameter currently doesn't work for the none animator. We will fix this but I think it's not only for the dialog, it's probably the case for other components as well that that you can't put a delay on the none animator.

I will close this for now.

argelius avatar Sep 12 '16 06:09 argelius