UNPKG

acha-framework

Version:

is a modular framework on both client (angular.js) and server (node.js) side, it provides security, orm, ioc, obfuscation and ...

40 lines 1.23 kB
(function ($, angular, underscore, window, document, undefined) { 'use strict'; angular.module('frontend.directives').directive('gridView', [function () { return { restrict: 'E', replace: true, scope: { tag: '<?', disabled: '=?', visible: '=?', cssClass: '=?', checkboxColumn: '=?', rows: '=?', columns: '=?' }, templateUrl: '/templates/framework/directives/grid-view/template.html', link: function (scope, element, attr) { scope.vm = {}; scope.vm.init = function () { if (angular.isUndefined(scope.disabled)) { scope.disabled = false; } if (angular.isUndefined(scope.visible)) { scope.visible = true; } if (angular.isUndefined(scope.cssClass)) { scope.cssClass = ''; } if (angular.isUndefined(scope.readonly)) { scope.readonly = false; } scope.vm.bind(); }; scope.vm.bind = function () { }; scope.vm.init(); } }; }]); }(jQuery, angular, _, window, document));