From 29afb6ddb9b0519ea7a32c00cbcab2b3bbb984f1 Mon Sep 17 00:00:00 2001 From: Elad Bezalel Date: Sun, 22 Nov 2015 21:57:38 +0200 Subject: [PATCH] docs(dialog): added targetEvent to confirm and alert dialogs fixes #5219. closes #5875. --- src/components/dialog/dialog.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/components/dialog/dialog.js b/src/components/dialog/dialog.js index fb25c2da10d..45432dff2d5 100644 --- a/src/components/dialog/dialog.js +++ b/src/components/dialog/dialog.js @@ -300,6 +300,9 @@ function MdDialogDirective($$rAF, $mdTheming, $mdDialog) { * module to be loaded. HTML is not run through Angular's compiler. * - $mdDialogPreset#ok(string) - Sets the alert "Okay" button text. * - $mdDialogPreset#theme(string) - Sets the theme of the alert dialog. + * - $mdDialogPreset#targetEvent(DOMClickEvent=) - A click's event object. When passed in as an option, + * the location of the click will be used as the starting point for the opening animation + * of the the dialog. * */ @@ -322,6 +325,9 @@ function MdDialogDirective($$rAF, $mdTheming, $mdDialog) { * - $mdDialogPreset#ok(string) - Sets the confirm "Okay" button text. * - $mdDialogPreset#cancel(string) - Sets the confirm "Cancel" button text. * - $mdDialogPreset#theme(string) - Sets the theme of the confirm dialog. + * - $mdDialogPreset#targetEvent(DOMClickEvent=) - A click's event object. When passed in as an option, + * the location of the click will be used as the starting point for the opening animation + * of the the dialog. * */