ng-dialog

add IDialogOptions.disableAnimation, IDialogOpenOptions.data and upadated test
This commit is contained in:
Mark Nadig
2015-12-11 10:55:03 -07:00
parent 5a8fc5ee71
commit f3eeb32d71
2 changed files with 12 additions and 0 deletions

View File

@@ -20,6 +20,8 @@ class DialogTestController {
template: "login.html",
className: "default flat-ui",
closeByEscape: false,
data: "string",
disableAnimation: false,
name: "login-popup"
});

View File

@@ -61,6 +61,12 @@ declare module angular.dialog {
* It will be appended with the "ngdialog" class e.g. className is "default-theme flat-ui" it will be class="ngdialog default-theme flat-ui".
*/
className?: string;
/**
* If true then animation for the dialog will be disabled, default false.
*/
disableAnimation?: boolean;
/**
* If false it allows to hide overlay div behind the modals, default true.
*/
@@ -106,5 +112,9 @@ declare module angular.dialog {
* Scope object that will be passed to dialog. If you use controller with separate $scope service this object will be passed to $scope.$parent param.
*/
scope?: ng.IScope;
/**
* Any serializable data that you want to be stored in the controller's dialog scope.
*/
data?: string|Object|any[];
}
}