diff options
author | 2017-05-04 07:48:42 -0400 | |
---|---|---|
committer | 2017-05-04 12:28:17 -0400 | |
commit | b54df0ddd0c6a0372327c5aa3668e5a6458fcd64 (patch) | |
tree | e69cfa9b314a801bd187cf0145d1d4306436229c /ecomp-portal-FE/client/bower_components_external/angular-att-gridster/ui-gridster-tpls-0.0.1.js | |
parent | 39d1e62c84041831bfc52cca73b5ed5efaf57d27 (diff) |
[PORTAL-7] Rebase
This rebasing includes common libraries and common overlays projects
abstraction of components
Change-Id: I9a24a338665c7cd058978e8636bc412d9e2fdce8
Signed-off-by: st782s <statta@research.att.com>
Diffstat (limited to 'ecomp-portal-FE/client/bower_components_external/angular-att-gridster/ui-gridster-tpls-0.0.1.js')
-rw-r--r-- | ecomp-portal-FE/client/bower_components_external/angular-att-gridster/ui-gridster-tpls-0.0.1.js | 86 |
1 files changed, 0 insertions, 86 deletions
diff --git a/ecomp-portal-FE/client/bower_components_external/angular-att-gridster/ui-gridster-tpls-0.0.1.js b/ecomp-portal-FE/client/bower_components_external/angular-att-gridster/ui-gridster-tpls-0.0.1.js deleted file mode 100644 index 2e77874e..00000000 --- a/ecomp-portal-FE/client/bower_components_external/angular-att-gridster/ui-gridster-tpls-0.0.1.js +++ /dev/null @@ -1,86 +0,0 @@ -angular.module("att.gridster", ["att.gridster.tpls", "att.gridster.utilities","att.gridster.gridster"]); -angular.module("att.gridster.tpls", ["template/gridster/gridster.html"]); -angular.module('att.gridster.utilities', []) - .factory('$extendObj', [function () { - var _extendDeep = function (dst) { - angular.forEach(arguments, function (obj) { - if (obj !== dst) { - angular.forEach(obj, function (value, key) { - if (dst[key] && dst[key].constructor && dst[key].constructor === Object) { - _extendDeep(dst[key], value); - } else { - dst[key] = value; - } - }); - } - }); - return dst; - }; - return { - extendDeep: _extendDeep - - }; - }]); - -angular.module('att.gridster.gridster', ['attGridsterLib', 'att.gridster.utilities']) - .constant('attGridsterConfig', - { - columns: 3, - maxRows: 3, - margins: [10, 10], - outerMargin: true, - pushing: true, - floating: false, - swapping: true, - draggable: { - enabled: true - } - }) - .directive('attGridster',['attGridsterConfig', '$extendObj', function (attGridsterConfig, $extendObj) { - return { - restrict: 'EA', - scope: { - attGridsterOptions : '=?', - attGridsterItems : '=' - }, - templateUrl: 'template/gridster/gridster.html', - replace: false, - controller: ['$scope', '$attrs', function ($scope, $attrs) { - - }], - link: function (scope, element, attrs, ctrl) { - if (angular.isDefined(scope.attGridsterOptions)) { - attGridsterConfig = $extendObj.extendDeep(attGridsterConfig, scope.attGridsterOptions); - } - scope.attGridsterConfig = attGridsterConfig; - - } - }; - }]); -angular.module("template/gridster/gridster.html", []).run(["$templateCache", function($templateCache) { - $templateCache.put("template/gridster/gridster.html", - "<div>\n" + - " <div gridster='attGridsterConfig'>\n" + - " <div gridster-item=\"item\" ng-repeat=\"item in attGridsterItems\" class=\"gridster-item-container\" >\n" + - " <div class=\"gridster-item-header\">\n" + - " <img gridster-item-drag src=\"images/grips.png\" alt='||' class=\"gridster-item-handle\" />\n" + - " <span class=\"gridster-item-header-content\">Maintenance</span>\n" + - " <span class=\"gridster-item-sub-header-content\">Sub Header</span>\n" + - " <div class=\"gridster-item-header-buttons-container\">\n" + - " <img src=\"images/att-globe-ie8.png\" alt='AT&T' />\n" + - " </div>\n" + - " </div>\n" + - " <div class=\"gridster-item-body\">\n" + - " <div style=\" width: 100%; height: 221px; font-size: 12px;\">\n" + - " <br/>{{$index}}<center></center>\n" + - " <br>\n" + - " There are no AT&T BusinessDirect tools available. To contact us for help, click the chat icon, and then click Contact Us.\n" + - " </div>\n" + - " </div>\n" + - " <div class=\"gridster-item-footer\">\n" + - " <a href='#anotherPage' class=\"gridster-item-footer-content\" >Navigate to another page</a>\n" + - " </div>\n" + - " </div>\n" + - " </div>\n" + - "</div>"); -}]); |