This repository has been archived by the owner on May 29, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(modal): add support for custom window settings
Closes #892
- Loading branch information
1 parent
37777ca
commit 015625d
Showing
5 changed files
with
42 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
describe('modal window', function () { | ||
|
||
var $rootScope, $compile; | ||
|
||
beforeEach(module('ui.bootstrap.modal')); | ||
beforeEach(module('template/modal/window.html')); | ||
beforeEach(inject(function (_$rootScope_, _$compile_) { | ||
$rootScope = _$rootScope_; | ||
$compile = _$compile_; | ||
})); | ||
|
||
it('should support custom CSS classes as string', function () { | ||
var windowEl = $compile('<div modal-window window-class="test">content</div>')($rootScope); | ||
$rootScope.$digest(); | ||
|
||
expect(windowEl).toHaveClass('test'); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<div class="modal fade" ng-class="{in: animate}" ng-transclude></div> | ||
<div class="modal fade {{ windowClass }}" ng-class="{in: animate}" ng-transclude></div> |