-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
md-dialog #114
Comments
For alpha.6:
|
This is the component that I'm needing more. :) 👍 |
I also need this. Waiting for this. 👍 |
We all wait this. @jelbourn, can you merge this early? |
Any estimates on that? |
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). |
Hi @jelbourn! The basic dialog is working already. However, it is not published in npm. May you publish it? |
It's missing some pieces @andvasp, like backdrop. It still more of a prototype than anything that could be released. |
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:
|
Oh nevermind. For future readers, it's possible to edit the instance of the StandardDialog (custom) class by editing
|
Any news about releasing this? The depending issue is closed (to be splitted further though). |
Adding my +1. This is a big one. Anxiously and excitedly waiting for it. Hope we get an official release soon. |
Remaining work before initial release:
|
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... |
Is it possible to passing data to the component? via |
I have `polyfills.bundle.js:7625 Unhandled Promise rejection: Template parse errors:
"): CompanyComponent@32:0 ; Zone: ; Task: Promise.then ; Value: Error: Template parse errors:(…) Error: Template parse errors:
"): CompanyComponent@32:0 |
MdDialog is a service, not a |
A quick example code would be most helpful |
Don't have docs for it yet, but the unit test might be helpful: |
I still think it should be both component and service. Both have use cases, and for me, having global state management, I'd prefer component 90% of time. |
Looks like someone wrote up an example just today: http://stackoverflow.com/a/40185852/550975 |
There is an example here in the demo-app in this repository. https://github.com/angular/material2/tree/master/src/demo-app/dialog |
@serjster, you can read this article as well https://medium.com/@tarik.nzl/making-use-of-dialogs-in-material-2-mddialog-7533d27df41 |
@reinos You can pass in the config parameters I guess your object and you can use them then. |
Closing this issue now and going to track remaining work through separate issues |
Is there a way to make the content scrollable within the dialog? |
@nak411, try with css. Something like: md-dialog-container {
overflow: auto;
height: 300px;
}
or perhaps similar to that on your component. |
is there any way to pass data to dialog ? |
I want to add custom css class to “.mat-dialog-container” to customize it’s background because I have more than one dialog , there is no class property in MdDialogConfig class ?! |
I think if there is class property in MdDialogConfig will be much easier , thanks @fxck anyway . |
How can I notify to parent from dialog? |
@ermarkar Have you got any idea ? I wanna know that too... |
If a dialog is set to allow dismissal by clicking outside the dialog is it possible to prevent its dismissal, for example in the case where the dialog contains a form which has not been saved - in which case I'd want to ask the user first if they want to save it? |
Hi why after upgrade to beta.3 I can not see MdDialogRef.options anymore? I was passing some data this way and now after upgrading to angular 4 and beta 3 of material I do not know how to pass. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Depends on #113
The text was updated successfully, but these errors were encountered: