Skip to content

Commit 2fdde7c

Browse files
author
Null McNull
committed
autoInjectBodyBlock config
1 parent e9b6cfc commit 2fdde7c

14 files changed

+61
-17
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,3 +204,16 @@ Allows you to specify a filter function to exclude certain ajax requests from bl
204204
return false; // ... don't block it.
205205
}
206206
});
207+
208+
#### autoInjectBodyBlock
209+
When the module is started it will inject the _main block element_ as a child of the _body element_.
210+
211+
<body>
212+
<div block-ui="main"></div>
213+
</body>
214+
215+
This behaviour can be disabled if there no need for any _fullscreen_ blocking or if more control over this element is required.
216+
217+
blockUIConfigProvider.autoInjectBodyBlock(false); // Disable auto body block
218+
219+

bower.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
{
22
"name": "angular-block-ui",
33
"description": "An AngularJS module that allows you to block user interaction on AJAX requests.",
4-
"version": "0.0.8",
4+
"version": "0.0.9",
55
"keywords": [
66
"angular",
77
"angularjs",
88
"block",
99
"block-ui",
10-
"blockui"
10+
"blockui",
11+
"loading"
1112
],
1213
"authors": [
1314
"Null McNull <[email protected]>"

dist/README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,3 +204,16 @@ Allows you to specify a filter function to exclude certain ajax requests from bl
204204
return false; // ... don't block it.
205205
}
206206
});
207+
208+
#### autoInjectBodyBlock
209+
When the module is started it will inject the _main block element_ as a child of the _body element_.
210+
211+
<body>
212+
<div block-ui="main"></div>
213+
</body>
214+
215+
This behaviour can be disabled if there no need for any _fullscreen_ blocking or if more control over this element is required.
216+
217+
blockUIConfigProvider.autoInjectBodyBlock(false); // Disable auto body block
218+
219+

dist/angular-block-ui.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/angular-block-ui.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/angular-block-ui.js

Lines changed: 11 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/angular-block-ui.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/angular-block-ui.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/angular-block-ui.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)