@ardimedia/angular-portal-azure 0.2.141 → 0.2.142
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/apn.d.ts +2 -0
- package/apn.js +7 -6
- package/package.json +1 -1
package/apn.d.ts
CHANGED
|
@@ -50,6 +50,7 @@ declare var $: JQueryStatic;
|
|
|
50
50
|
declare namespace angularportalazure {
|
|
51
51
|
class Blade extends angularportalazure.UserControlBase {
|
|
52
52
|
constructor($scope: angular.IScope, portalService: angularportalazure.PortalService, path: string, title: string, subtitle?: string, width?: number);
|
|
53
|
+
private watcherTitle;
|
|
53
54
|
private bladeContentHeight;
|
|
54
55
|
bladeContentInnerHeight: number;
|
|
55
56
|
private _path;
|
|
@@ -150,6 +151,7 @@ declare namespace angularportalazure {
|
|
|
150
151
|
onCommandStop(): void;
|
|
151
152
|
onCommandSwap(): void;
|
|
152
153
|
/** Obsolete */
|
|
154
|
+
setTitle(watchExpression: string, func: () => void): void;
|
|
153
155
|
private setBladeHeights();
|
|
154
156
|
}
|
|
155
157
|
}
|
package/apn.js
CHANGED
|
@@ -474,12 +474,13 @@ var angularportalazure;
|
|
|
474
474
|
//}
|
|
475
475
|
//#endregion
|
|
476
476
|
//#endregion
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
477
|
+
Blade.prototype.setTitle = function (watchExpression, func) {
|
|
478
|
+
var _this = this;
|
|
479
|
+
if (this.watcherTitle === undefined) {
|
|
480
|
+
this.watcherTitle = this.$scope.$watch(watchExpression, function () { func(); });
|
|
481
|
+
this.$scope.$on('$destroy', function () { _this.watcherTitle(); });
|
|
482
|
+
}
|
|
483
|
+
};
|
|
483
484
|
Blade.prototype.setBladeHeights = function () {
|
|
484
485
|
var that = this;
|
|
485
486
|
that.bladeContentHeight = $('.fxs-blade-content').height();
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@ardimedia/angular-portal-azure",
|
|
3
3
|
"description": "Angular Portal Azure - GUI Framework.",
|
|
4
4
|
"author": "Ardimedia Anstalt <info@ardimedia.com> (http://www.ardimedia.com)",
|
|
5
|
-
"version": "0.2.
|
|
5
|
+
"version": "0.2.142",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"typings": "apn.d.ts",
|
|
8
8
|
"dependencies": {
|