components icon indicating copy to clipboard operation
components copied to clipboard

md-dialog

Open jelbourn opened this issue 10 years ago • 54 comments

Depends on #113

jelbourn avatar Feb 27 '16 04:02 jelbourn

For alpha.6:

  • [ ] Design doc
  • [ ] Basic initial implementation

jelbourn avatar May 25 '16 18:05 jelbourn

This is the component that I'm needing more. :) :+1:

andvasp avatar May 26 '16 23:05 andvasp

I also need this. Waiting for this. :+1:

ashu2k6k avatar Jun 09 '16 17:06 ashu2k6k

We all wait this. @jelbourn, can you merge this early? I planned my project to use this in alpha.6, but it delayed too much. Thank you for all your jobs.

vifore avatar Jul 13 '16 00:07 vifore

Any estimates on that?

vagonpidarasov avatar Aug 02 '16 12:08 vagonpidarasov

Is there a design doc somewhere @jelbourn ? Looking at the way the public API looks at the moment(https://github.com/angular/material2/blob/master/src/demo-app/dialog/dialog-demo.ts) I'm afraid it's not gonna be too reactive approach friendly(particularly controlling the dialog state with something like @ngrx/store).

fxck avatar Aug 03 '16 08:08 fxck

Hi @jelbourn!

The basic dialog is working already. However, it is not published in npm. May you publish it?

andvasp avatar Aug 11 '16 02:08 andvasp

It's missing some pieces @andvasp, like backdrop. It still more of a prototype than anything that could be released.

fxck avatar Aug 11 '16 09:08 fxck

The dialog works, but it appears that there is no way to pass data to the component inside, am I wrong? Like when you call it like this:

this.dialog.open(StandardDialog, config)

ghost avatar Aug 21 '16 13:08 ghost

Oh nevermind. For future readers, it's possible to edit the instance of the StandardDialog (custom) class by editing dialogRef like this:

this.dialog.open(StandardDialog, config)
         .then(res => {
            this.dialogRef = res;
            this.dialogRef.componentInstance.title = title;
            this.dialogRef.componentInstance.contents = contents;
         });

ghost avatar Aug 21 '16 14:08 ghost

Any news about releasing this? The depending issue is closed (to be splitted further though).

vapits avatar Aug 22 '16 07:08 vapits

Adding my +1. This is a big one. Anxiously and excitedly waiting for it. Hope we get an official release soon.

kevinkoperski avatar Aug 26 '16 18:08 kevinkoperski

Remaining work before initial release:

  • Backdrop (#1041)
  • Focus trapping

jelbourn avatar Sep 01 '16 23:09 jelbourn

With #1041 being LGTM would it be possible to get this out on the next release? I know focus trapping is important to ARIA and accessibility but so much is built on md-dialog that it's one big thing keeping us using ng2 or other hacks.. We can just use the PR but I was hoping that we could at least get it on the NPM...

DennisSmolek avatar Sep 02 '16 13:09 DennisSmolek

IT would be great if we can have this in the next release

elvirdolic avatar Sep 16 '16 07:09 elvirdolic

@jelbourn Is the intention to allow MdDialog to work with overlay position strategies other than global? I noticed that you're capturing the ViewContainerRef but it seems it currently only being used for maintaining the injector hierarchy, rather than positioning. Would be great if we could place the dialog within a specific container, so that the overlay doesn't have to be global all the time.

jimitndiaye avatar Sep 16 '16 13:09 jimitndiaye

#113 is closed & #1041 is merged. Both for a while now, what are the news on this?

vapits avatar Sep 20 '16 12:09 vapits

i tried MdDialog with rc5 . It gave error

EXCEPTION: Error: Uncaught (in promise): No provider for Token overlayContainer! browser_adapter.ts:82

import {Component} from '@angular/core'; import {MdDialog} from '@angular2-material/dialog/dialog'; import {Overlay} from '@angular2-material/core/overlay/overlay'; @Component({ moduleId:__moduleName, selector: 'iPopup', templateUrl: 'iPopup.html', styleUrls: ['iPopup.css'], directives: [MdDialog], providers:[Overlay]

})

aditya1109 avatar Sep 28 '16 06:09 aditya1109

Is there a close method on the current released alpha.9-3? As I see here: https://github.com/angular/material2/blob/master/src/lib/dialog/dialog.ts

There's no close method but on the other hand things that are in comments marked as todo (like close on esc etc) works.

vapits avatar Oct 07 '16 11:10 vapits

Close is on the MdDialogRef that you get back from opening it.

jelbourn avatar Oct 07 '16 18:10 jelbourn