mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-23 04:47:24 +08:00
added ariaLabelledBy and ariaDescribedBy to IModalSettings (#13004)
This commit is contained in:
@@ -154,6 +154,8 @@ testApp.controller('TestCtrl', (
|
||||
* test the $modal service
|
||||
*/
|
||||
var modalInstance = $modal.open({
|
||||
ariaLabelledBy: "label",
|
||||
ariaDescribedBy: "description",
|
||||
animation: false,
|
||||
backdrop: 'static',
|
||||
backdropClass: 'modal-backdrop-test',
|
||||
|
||||
18
angular-ui-bootstrap/angular-ui-bootstrap.d.ts
vendored
18
angular-ui-bootstrap/angular-ui-bootstrap.d.ts
vendored
@@ -1,6 +1,6 @@
|
||||
// Type definitions for Angular UI Bootstrap 0.13.3
|
||||
// Project: https://github.com/angular-ui/bootstrap
|
||||
// Definitions by: Brian Surowiec <https://github.com/xt0rted>
|
||||
// Definitions by: Brian Surowiec <https://github.com/xt0rted>, Ryan Southgate <https://github.com/ry8806>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
/// <reference path="../angularjs/angular.d.ts" />
|
||||
@@ -411,6 +411,22 @@ declare namespace angular.ui.bootstrap {
|
||||
* - `resolve` - An object of the modal resolve values. See [UI Router resolves] for details.
|
||||
*/
|
||||
component?: string;
|
||||
|
||||
/**
|
||||
* Sets the `aria-describedby` property on the modal.
|
||||
* The string should be an id (without the leading '#') pointing to the element that describes your modal.
|
||||
* @type {string}
|
||||
* @memberOf IModalSettings
|
||||
*/
|
||||
ariaDescribedBy?: string;
|
||||
|
||||
/**
|
||||
* Sets the `aria-labelledby` property on the modal.
|
||||
* The string should be an id (without the leading '#') pointing to the element that labels your modal.
|
||||
* @type {string}
|
||||
* @memberOf IModalSettings
|
||||
*/
|
||||
ariaLabelledBy?: string;
|
||||
}
|
||||
|
||||
interface IModalStackService {
|
||||
|
||||
Reference in New Issue
Block a user