-
Notifications
You must be signed in to change notification settings - Fork 67
Usage of uifDialog #363
Comments
I know it is difficult to use uifDialog at the moment due to complex markup. That is the same reason, I have created another issue #159 that allows to create dialogs with simple parameters (similar to $mdDialog service). |
If it's complicated to use the dialog, then we should fix that if possible, not create something else to fix it. I get the idea of a service, but we should fix the issue if there's an issue (I don't have experience in using the dialog so can't speak to it). |
IMO, a service is overkill, we're not entirely consistent in other directives which require layering and/or showing and hiding. This may be because some can use
I realise we're going off piste here, but I think we have two options:-
Would welcome thoughts |
as per comment from @tobiaswest83 it seems that different directives use different attributes. |
I would vote for an improved documentation. e.g. |
Seems this one has stalled out... restarting the discussion to reach a resolution... consistent open / close across all directivesThis is a bigger topic, but one we should standardize on. I personally think the simplifying the markupWhile I get what @tobiaswest83 proposes, the header should be wrapped in a tag so the user can control what the header looks like. Or am I mistaken that you could control it... for instance, include text & an image in the header and control the CSS class used to style the text like the current one uses. I do think the
Thoughts? |
After short research, I found that If we simplify the markup currently, user will have to
If the Is this a bug that should be logged in the Office UI Fabric? |
@jigargandhi Strange... maybe post a question as to why they do that with Office UI Fabric... |
Added an issue in OfficeUI repo. |
I'm going to close this issue... now that we have an actual spec and working example from the Office UI Fabric guys @ MSFT and a working React version, that should be used as the spec. See #455. |
Currently the uifDialog has a few issues which need addressing, listed below. Looping in @jigargandhi as the original author and creator of issue #159 relating to creating services
Opening/Closing dialogs
At the very least, in order to make
uifDialog
usable, suggest we includeuif-is-open
to allow consumers to control the state of the dialog from within their app.Markup
The markup required by consumers is complex, see plunk for how it needs to be used. Suggest a new spec for usage as below
this would be a breaking change, but as
uifDialog
isn't really usable at the moment, suggest that's OK and it's better to fix before we ship v1.0The text was updated successfully, but these errors were encountered: