mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 22:30:01 +00:00
Update angular-ui-bootstrap.d.ts (#11263)
Add `component` option for modals
This commit is contained in:
committed by
Masahiro Wakame
parent
8a8a139621
commit
18d656dda3
11
angular-ui-bootstrap/angular-ui-bootstrap.d.ts
vendored
11
angular-ui-bootstrap/angular-ui-bootstrap.d.ts
vendored
@@ -406,6 +406,17 @@ declare namespace angular.ui.bootstrap {
|
||||
* @default 'body'
|
||||
*/
|
||||
appendTo?: angular.IAugmentedJQuery;
|
||||
|
||||
/**
|
||||
* A string reference to the component to be rendered that is registered with Angular's compiler. If using a directive, the directive must have `restrict: 'E'` and a template or templateUrl set.
|
||||
*
|
||||
* It supports these bindings:
|
||||
* - `close` - A method that can be used to close a modal, passing a result. The result must be passed in this format: `{$value: myResult}`
|
||||
* - `dismiss` - A method that can be used to dismiss a modal, passing a result. The result must be passed in this format: `{$value: myRejectedResult}`
|
||||
* - `modalInstance` - The modal instance. This is the same `$uibModalInstance` injectable found when using `controller`.
|
||||
* - `resolve` - An object of the modal resolve values. See [UI Router resolves] for details.
|
||||
*/
|
||||
component?: string;
|
||||
}
|
||||
|
||||
interface IModalStackService {
|
||||
|
||||
Reference in New Issue
Block a user